22d9f5b21d
Novas skills instaladas: - openclaw-agent-browser v1.0.0 CLI Chromium — navegação, login, screenshots, state - skill-security-audit v1.0.0 SAST scanning, prompt injection, secrets audit - sql-toolkit v1.0.0 PostgreSQL/MySQL/SQLite — schema, query, otimização - file v1.0.0 Organização de arquivos por contexto - file-summary v1.0.0 Extração e resumo de PDFs, Word, Excel Workspace expandido: - TOOLS.md: +Browser automation, Security audit, SQL, File management - AGENTS.md: +Linux Analyst section (comandos, logs, rede, scripts) + Full-stack strategy - MEMORY.md: 16 skills indexadas, stack map, comandos Linux ref - SESSION-STATE.md: atualizado com contexto completo - lock.json: sincronizado com 16 skills instaladas
42 lines
1.1 KiB
Markdown
42 lines
1.1 KiB
Markdown
# Example: Next.js App → xCloud via Docker
|
|
|
|
## Project structure detected
|
|
- package.json ✓
|
|
- next.config.js ✓
|
|
|
|
Detected: Next.js | Recommended: Docker (requires build step)
|
|
|
|
## Step 1 — Add standalone output to next.config.js
|
|
```js
|
|
const nextConfig = { output: 'standalone' }
|
|
module.exports = nextConfig
|
|
```
|
|
|
|
## Step 2 — Add Dockerfile
|
|
Copy `dockerfiles/nextjs.Dockerfile` → rename to `Dockerfile` in repo root.
|
|
|
|
## Step 3 — Add docker-compose.yml
|
|
Copy `compose-templates/nextjs-postgres.yml` → rename to `docker-compose.yml`. Replace OWNER/REPO.
|
|
|
|
## Step 4 — Add GitHub Actions
|
|
Copy `assets/github-actions-build.yml` → `.github/workflows/docker-build.yml`
|
|
|
|
## Step 5 — Add .env.example
|
|
```env
|
|
POSTGRES_DB=myapp
|
|
POSTGRES_USER=myuser
|
|
POSTGRES_PASSWORD=
|
|
NEXTAUTH_URL=https://yourdomain.com
|
|
NEXTAUTH_SECRET=
|
|
```
|
|
|
|
## Step 6 — Push and wait for GHCR build (~3-5 min)
|
|
```bash
|
|
git add . && git commit -m "Add xCloud deployment" && git push origin main
|
|
```
|
|
|
|
## Step 7 — Deploy in xCloud
|
|
1. Server → New Site → Custom Docker
|
|
2. Connect repo, exposed port: 3000
|
|
3. Add env vars, Deploy
|