Files
story-studio/README.md
Carlos Narro f2ea2f45c3 docs: document Dokploy autodeploy setup in README
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-08-11 10:37:19 +02:00

42 lines
1.8 KiB
Markdown

This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).
## Getting Started
First, run the development server:
```bash
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
```
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.
## Learn More
To learn more about Next.js, take a look at the following resources:
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!
## Deploy
Producción: **https://story-studio.carlosnarro.com** — desplegada en **Dokploy** (instancia personal "Forja", `panel.carlosnarro.com`) con **autodeploy desde Gitea**.
- **Push a `master`** en `git.carlosnarro.com/carlos/story-studio` → Dokploy reconstruye la imagen (Dockerfile) y redespliega automáticamente.
- **Build**: `Dockerfile` (`npm run build` con webpack + `next start`). El `build` script usa `--webpack` a propósito (la config de `@remotion` es incompatible con el Turbopack por defecto de Next 16).
- **Datos persistentes** (bind mounts, no van en la imagen):
- `/app/data` → SQLite (`story-studio.db`)
- `/app/projects` → imágenes y vídeos generados
- **Env vars** en Dokploy: `GEMINI_API_KEY` (imagen), `OPENAI_API_KEY` (texto), y opcionalmente `ARK_API_KEY` (vídeo).