forked from kpdvstu/PTLab2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrender.yaml
29 lines (29 loc) · 937 Bytes
/
render.yaml
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
version: 1
services:
- type: web
name: PTLab2
env: python
buildCommand: |
pip install -r requirements.txt
mkdir -p /opt/render/project/src/staticfiles
python manage.py collectstatic --noinput
startCommand: |
gunicorn tplab2.wsgi:application --bind 0.0.0.0:$PORT
autoDeploy: true
envVars:
- key: SECRET_KEY
value: "django-insecure-%hodks^u@arq^bv-tms#o!v$c*p6_5o%yvw!!u+n9ber@*g9*f"
- key: DEBUG
value: "FALSE"
- key: ALLOWED_HOSTS
value: "localhost,127.0.0.1, ptlab2-52fv.onrender.com"
- key: DATABASE_URL
value: "postgresql://django_db_ww9t_user:Z5aDr2GVbYFHnBE6ce3nmXqSEcLoYZi9@dpg-csog0cggph6c73br10a0-a/django_db_ww9t"
migrations:
command: python manage.py migrate
postDeploy:
command: python manage.py loaddata products.yaml
healthCheck:
path: /health
protocol: HTTP
port: 8000