-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrender.yaml
More file actions
89 lines (84 loc) · 2.23 KB
/
Copy pathrender.yaml
File metadata and controls
89 lines (84 loc) · 2.23 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
services:
# Flask backend — Docker-based web service
- type: web
name: basi-backend
runtime: docker
dockerfilePath: ./Dockerfile
envVars:
- key: SECRET_KEY
sync: false
- key: JWT_SECRET_KEY
sync: false
- key: MAIL_USERNAME
sync: false
- key: MAIL_PASSWORD
sync: false
- key: MAIL_DEFAULT_SENDER
sync: false
- key: GROQ_API_KEY
sync: false
- key: FLASK_APP
value: app.py
# React frontend — static site
- type: web
name: basi-frontend
runtime: static
buildCommand: cd frontend && npm install && npm run build
staticPublishPath: frontend/dist
envVars:
- key: VITE_API_URL
sync: false
- key: VITE_SOCKET_URL
sync: false
routes:
- type: rewrite
source: /*
destination: /index.html
# Cron — historical data + technical indicators (every hour)
- type: cron
name: basi-cron-historical
runtime: python
schedule: "0 * * * *"
buildCommand: pip install -r requirements.txt
startCommand: python backend/cron_update.py
envVars:
- key: SECRET_KEY
sync: false
- key: JWT_SECRET_KEY
sync: false
# Cron — Fear & Greed Index (daily at 04:05)
- type: cron
name: basi-cron-fgi
runtime: python
schedule: "5 4 * * *"
buildCommand: pip install -r requirements.txt
startCommand: python backend/cron_update_fgi.py
envVars:
- key: SECRET_KEY
sync: false
- key: JWT_SECRET_KEY
sync: false
# Cron — CoinGecko snapshots (daily at 02:00)
- type: cron
name: basi-cron-snapshot
runtime: python
schedule: "0 2 * * *"
buildCommand: pip install -r requirements.txt
startCommand: python backend/cron_update_snapshot.py
envVars:
- key: SECRET_KEY
sync: false
- key: JWT_SECRET_KEY
sync: false
# Cron — top 24h volume (daily at 02:15)
- type: cron
name: basi-cron-top-volume
runtime: python
schedule: "15 2 * * *"
buildCommand: pip install -r requirements.txt
startCommand: python backend/cron_update_top_volume.py
envVars:
- key: SECRET_KEY
sync: false
- key: JWT_SECRET_KEY
sync: false