-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
40 lines (38 loc) · 1.15 KB
/
render.yaml
File metadata and controls
40 lines (38 loc) · 1.15 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
services:
- type: web
name: degenrep-bot
env: python
plan: free
buildCommand: pip install -r requirements.txt
startCommand: python app.py
envVars:
- key: BOT_TOKEN
value: your_bot_token_here
- key: DATABASE_URL
value: postgresql://degencred_bot_user:y3GZTCEIuSK5JtIHlFTDLujYWBjfzUwi@dpg-d1c97kur433s7386em5g-a.oregon-postgres.render.com/degencred_bot
- type: web
name: degencred-bot
env: python
runtime: python-3.11.6
plan: free
buildCommand: apt-get update && apt-get install -y libjpeg-dev zlib1g-dev && pip install -r requirements.txt
startCommand: gunicorn -w 4 -b 0.0.0.0:8000 app:app
envVars:
- key: BOT_TOKEN
value: your_bot_token_here
- key: DATABASE_URL
fromDatabase:
name: degencred_bot
property: connectionString
- type: web
name: degencred-bot-docker
env: docker
plan: free
dockerfilePath: ./Dockerfile
envVars:
- key: BOT_TOKEN
sync: false # Set manually in Render dashboard
- key: DATABASE_URL
fromDatabase:
name: degencred_bot
property: connectionString