Skip to content

Commit

Permalink
improve render.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
albert-byiringiro committed Dec 19, 2024
1 parent cc73b33 commit a65715c
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions render.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ services:
region: frankfurt
branch: main
buildCommand: >
npm install && cd shared && npm install && npm run build && cd ../server &&
npm install -g @nestjs/cli && npm install &&
npm install && cd shared && npm install && npm run build && cd ../server &&
npm install -g @nestjs/cli && npm install &&
npm run build -- --path tsconfig.build.json
startCommand: cd server && NODE_PATH=../shared/dist node dist/main
envVars:
Expand All @@ -34,8 +34,6 @@ services:
type: redis
name: votefusion-redis
property: port
- key: TS_NODE_BASEURL
value: ./dist

- type: web
name: votefusion-client
Expand All @@ -44,15 +42,13 @@ services:
region: frankfurt
branch: main
buildCommand: >
npm ci && cd shared && npm install && npm run build && cd ../client &&
npm install --save-dev @types/react-transition-group @types/react @types/react-dom &&
npm install vite @vitejs/plugin-react &&
SKIP_PREFLIGHT_CHECK=true npm run build
startCommand: cd client && npm run serve
npm ci && cd shared && npm run build && cd ../client &&
npm run build
publishDirectory: dist
envVars:
- key: VITE_API_URL
value: https://votefusion-api.onrender.com
- key: PORT
value: 10000
- key: NODE_ENV
value: development
value: production

0 comments on commit a65715c

Please sign in to comment.