Merge pull request #37 from trails-cool/fix-production-deploy
Fix production deploy: TS support + DB schema
This commit is contained in:
commit
1abcc5c804
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