-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrender.yaml
More file actions
41 lines (40 loc) · 1.1 KB
/
Copy pathrender.yaml
File metadata and controls
41 lines (40 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
services:
- type: web
name: chess-backend
runtime: node
region: oregon
branch: main
rootDir: backend
buildCommand: >-
curl -L https://github.com/official-stockfish/Stockfish/releases/download/sf_17/stockfish-ubuntu-x86-64-avx2.tar
-o /tmp/sf.tar &&
tar -xf /tmp/sf.tar -C /tmp &&
cp /tmp/stockfish/stockfish-ubuntu-x86-64-avx2 ./stockfish-bin &&
chmod +x ./stockfish-bin &&
npm install &&
npm run build
startCommand: npm start
envVars:
- key: NODE_ENV
value: production
- key: CLIENT_URL
value: https://chess-app-jii7.onrender.com
- key: STOCKFISH_PATH
value: ./stockfish-bin
- type: web
name: chess-frontend
runtime: static
region: oregon
branch: main
rootDir: frontend
buildCommand: npm install && npx tsc
staticPublishPath: dist
envVars:
- key: VITE_API_URL
value: https://chess-gf05.onrender.com
- key: VITE_WS_URL
value: wss://chess-gf05.onrender.com
routes:
- type: rewrite
source: /*
destination: /index.html