-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathrender.yaml
More file actions
46 lines (44 loc) · 1.1 KB
/
render.yaml
File metadata and controls
46 lines (44 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
services:
- type: web
name: greenstagram-backend
env: node
plan: starter
region: oregon
buildCommand: cd backend && npm install && npm run build
startCommand: cd backend && npm start
healthCheckPath: /api/health
envVars:
- key: NODE_ENV
value: production
- key: PORT
value: 10000
- key: MONGODB_URI
sync: false
- key: JWT_SECRET
sync: false
- key: AZURE_CLIENT_ID
sync: false
- key: AZURE_CLIENT_SECRET
sync: false
- key: AZURE_TENANT_ID
sync: false
- key: REDIS_URL
sync: false
- type: static
name: greenstagram-frontend
buildCommand: cd frontend && npm install && npm run build
staticPublishPath: frontend/build
pullRequestPreviewsEnabled: true
envVars:
- key: VITE_API_URL
value: https://greenstagram-backend.onrender.com/api
- key: VITE_APP_ENV
value: production
routes:
- type: rewrite
source: /*
destination: /index.html
databases:
- name: greenstagram-redis
plan: starter
region: oregon