Skip to content

Commit

Permalink
Update render deploy configuration (#6167)
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesBochet authored Jul 8, 2024
1 parent 3e45305 commit 7aa903a
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 9 deletions.
3 changes: 3 additions & 0 deletions packages/twenty-server/scripts/render-worker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
export PG_DATABASE_URL=postgres://twenty:twenty@$PG_DATABASE_HOST:$PG_DATABASE_PORT/default
node dist/src/queue-worker/queue-worker
47 changes: 38 additions & 9 deletions render.yaml
Original file line number Diff line number Diff line change
@@ -1,29 +1,58 @@
services:
- type: web
name: front
name: server
runtime: image
plan: free
image:
url: twentycrm/twenty-front:latest
url: twentycrm/twenty:latest
dockerCommand: "sh -c ./scripts/render-run.sh"
autoDeploy: false
plan: standard
envVars:
- key: REACT_APP_SERVER_BASE_URL
- key: FRONT_BASE_URL
fromService:
name: server
type: web
envVarKey: RENDER_EXTERNAL_URL
- type: web
name: server
- key: SERVER_URL
fromService:
name: server
type: web
envVarKey: RENDER_EXTERNAL_URL
- key: ACCESS_TOKEN_SECRET
generateValue: true
- key: LOGIN_TOKEN_SECRET
generateValue: true
- key: REFRESH_TOKEN_SECRET
generateValue: true
- key: FILE_TOKEN_SECRET
generateValue: true
- key: PG_DATABASE_HOST
fromService:
name: twenty_postgres
type: pserv
property: host
- key: PG_DATABASE_PORT
fromService:
name: twenty_postgres
type: pserv
property: port
- type: worker
name: worker
runtime: image
image:
url: twentycrm/twenty-server:latest
dockerCommand: "sh -c ./scripts/render-run.sh"
url: twentycrm/twenty:latest
dockerCommand: "sh -c ./scripts/render-worker.sh"
autoDeploy: false
plan: standard
envVars:
- key: FRONT_BASE_URL
fromService:
name: front
name: server
type: web
envVarKey: RENDER_EXTERNAL_URL
- key: SERVER_URL
fromService:
name: server
type: web
envVarKey: RENDER_EXTERNAL_URL
- key: ACCESS_TOKEN_SECRET
Expand Down

0 comments on commit 7aa903a

Please sign in to comment.