-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
41 lines (39 loc) · 1.45 KB
/
render.yaml
File metadata and controls
41 lines (39 loc) · 1.45 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
services:
- type: web
name: edugame-backend
env: node
plan: free
buildCommand: cd BE && npm install
startCommand: cd BE && npm start
healthCheckPath: /api/health
envVars:
- key: NODE_ENV
value: production
- key: PORT
value: 10000
# IMPORTANT: Replace with Standard connection string in Render Dashboard (not mongodb+srv) to fix querySrv ENOTFOUND. In Atlas: Connect → Connect using MongoDB Compass → copy the URI (starts with mongodb://).
- key: MONGODB_URI
value: mongodb://ramyadav8395_db_user:<Yadav@7457>@ac-esiniss-shard-00-00.zixabb7.mongodb.net:27017,ac-esiniss-shard-00-01.zixabb7.mongodb.net:27017,ac-esiniss-shard-00-02.zixabb7.mongodb.net:27017/?replicaSet=atlas-is5rao-shard-0&ssl=true&authSource=admin
- key: JWT_SECRET
generateValue: true
- key: JWT_EXPIRE
value: 7d
- key: FRONTEND_URL
value: https://edugame-frontend.onrender.com
- key: EMAIL_USER
value: ramyadav8395@gmail.com
- key: EMAIL_PASS
value: your_gmail_app_password
- type: web
name: edugame-frontend
env: static
buildCommand: cd FE && npm install && npm run build
staticPublishPath: FE/build
envVars:
- key: REACT_APP_API_URL
value: https://edugame-backend-hftv.onrender.com/api
- key: REACT_APP_SOCKET_URL
value: https://edugame-backend-hftv.onrender.com
databases:
- name: edugame-db
plan: free