diff --git a/README.md b/README.md index 9c80736..1fed5ed 100644 --- a/README.md +++ b/README.md @@ -48,20 +48,7 @@ PORT=3080 Point NPM at `http://:3080` for the proxy host. -### 3. Create the initial database migration - -Run this **once** on your local dev machine before first deploy, then commit the result: - -```bash -cd server -npm install -# point at your local postgres or use DATABASE_URL from .env -npm run db:migrate # creates prisma/migrations/ -``` - -Commit the generated `server/prisma/migrations/` folder — `prisma migrate deploy` in the container will apply it on startup. - -### 4. Deploy +### 3. Deploy ```bash docker compose pull diff --git a/server/package.json b/server/package.json index 95963c4..6d8501f 100644 --- a/server/package.json +++ b/server/package.json @@ -5,7 +5,7 @@ "dev": "tsx watch src/index.ts", "build": "tsc", "start": "node dist/index.js", - "start:prod": "prisma migrate deploy && node dist/index.js", + "start:prod": "prisma db push && node dist/index.js", "db:migrate": "prisma migrate dev", "db:push": "prisma db push", "db:generate": "prisma generate",