Fix production deploy: TypeScript support + DB schema push
Planner crashed because Node.js couldn't handle .ts imports — add --experimental-strip-types to the CMD. Journal crashed because the database had no schemas — add drizzle-kit push to the deploy script. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
0fdcbf77d6
commit
afeefbf19d
2 changed files with 7 additions and 2 deletions
7
.github/workflows/cd.yml
vendored
7
.github/workflows/cd.yml
vendored
|
|
@ -108,8 +108,13 @@ jobs:
|
|||
done
|
||||
fi
|
||||
|
||||
# Pull latest images and restart
|
||||
# Pull latest images
|
||||
docker compose pull
|
||||
|
||||
# Push database schema (starts postgres, waits for healthy)
|
||||
docker compose run --rm journal npx drizzle-kit push --config /app/packages/db/drizzle.config.ts --force
|
||||
|
||||
# Start all services
|
||||
docker compose up -d --remove-orphans
|
||||
|
||||
# Verify services are running
|
||||
|
|
|
|||
|
|
@ -30,4 +30,4 @@ COPY --from=build /app/packages ./packages
|
|||
WORKDIR /app/apps/planner
|
||||
EXPOSE 3001
|
||||
ENV PORT=3001
|
||||
CMD ["node", "server.ts"]
|
||||
CMD ["node", "--experimental-strip-types", "server.ts"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue