Skip to content

Commit

Permalink
Fix the production deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
thesan committed Jul 6, 2023
1 parent 28e506c commit 64fc3ff
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions render.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
services:
- type: cron
name: notifier
- type: web
name: api
region: frankfurt
plan: starter

schedule: "*/30 * * * *"

runtime: image
image:
url: docker.io/thesan/pioneer-backend:prod

# Define env on this cron service to make sure it builds first so it won't execute before the migration is ready
envVars:
- key: DATABASE_URL
fromDatabase:
Expand All @@ -29,20 +26,19 @@ services:
- key: SENDGRID_API_KEY
sync: false

- key: STARTING_BLOCK
sync: false

- key: APP_LOG_LEVEL
value: verbose
- key: APP_SECRET_KEY
generateValue: true

- type: web
name: api
- type: cron
name: notifier
region: frankfurt
plan: starter

runtime: image
image:
url: docker.io/thesan/pioneer-backend:prod
dockerCommand: notify
schedule: "*/30 * * * *"

envVars:
- key: DATABASE_URL
Expand Down Expand Up @@ -74,8 +70,11 @@ services:
name: notifier
envVarKey: SENDGRID_API_KEY

- key: APP_SECRET_KEY
generateValue: true
- key: STARTING_BLOCK
sync: false

- key: APP_LOG_LEVEL
value: verbose

databases:
- name: db
Expand Down

0 comments on commit 64fc3ff

Please sign in to comment.