Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ RUN npm install --include=dev
COPY . .

RUN nx run-many -t build -p spin-cycle spin-cycle-client --prod
# Compile TypeORM migrations to JS for production runtime
# Compile TypeORM migrations to JS for production runtime and run migrations
RUN npx tsc -p apps/spin-cycle/tsconfig.migrations.json
RUN npm run db:migrate:run

RUN cp -R dist/apps/spin-cycle-client dist/apps/spin-cycle/assets/

ENTRYPOINT ["node", "dist/apps/spin-cycle/main.js"]
3 changes: 0 additions & 3 deletions fly.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ primary_region = 'ord'

[build]

[deploy]
release_command = "npm run db:migrate:run"

[http_service]
internal_port = 3000
force_https = true
Expand Down