-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrender.yaml
39 lines (33 loc) · 969 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
30
31
32
33
34
35
36
37
38
39
services:
- name: web
env: python
plan: hobby
buildCommand: pipenv install && pipenv run python manage.py migrate && pipenv run python manage.py collectstatic --noinput
startCommand: pipenv run gunicorn storefront.wsgi --bind 0.0.0.0:$PORT
healthCheckPath: /healthcheck
envVars:
- key: SECRET_KEY
generateValue: true
- key: DATABASE_URL
internal: true
- key: REDIS_URL
internal: true
databases:
- name: postgresql
plan: hobby-basic
envVars:
- key: DATABASE_URL
addons:
- name: redis
plan: hobby-dev
envVars:
- key: REDIS_URL
commands:
- name: Run Locust
command: pipenv run locust -f locustfile.py
- name: Run Celery Worker
command: pipenv run celery -A storefront worker -l info
- name: Run Celery Beat
command: pipenv run celery -A storefront beat -l info
- name: Run Celery Flower
command: pipenv run celery -A storefront flower -l info