Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update render deploy configuration #6167

Merged
merged 4 commits into from
Jul 8, 2024
Merged
Show file tree
Hide file tree
Changes from 2 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
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/worker
45 changes: 37 additions & 8 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
- 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: web
name: server
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
Loading