Specify Python version in render config

This commit is contained in:
Christopher C. Wells 2022-05-22 14:23:04 -07:00 committed by Christopher Charbonneau Wells
parent 1968bec727
commit 3d0b459849
2 changed files with 7 additions and 5 deletions

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -o errexit set -o errexit
python3 -m pip install --upgrade pip python -m pip install --upgrade pip
pip3 install -r requirements.txt pip install -r requirements.txt
python3 manage.py migrate python manage.py migrate

View File

@ -10,12 +10,14 @@ services:
buildCommand: "./.render.com/build.sh" buildCommand: "./.render.com/build.sh"
startCommand: "gunicorn babybuddy.wsgi:application" startCommand: "gunicorn babybuddy.wsgi:application"
envVars: envVars:
- key: DJANGO_SETTINGS_MODULE
value: babybuddy.settings.render
- key: DATABASE_URL - key: DATABASE_URL
fromDatabase: fromDatabase:
name: babybuddy name: babybuddy
property: connectionString property: connectionString
- key: DJANGO_SETTINGS_MODULE
value: babybuddy.settings.render
- key: PYTHON_VERSION
value: 3.10.4
- key: SECRET_KEY - key: SECRET_KEY
generateValue: true generateValue: true
- key: WEB_CONCURRENCY - key: WEB_CONCURRENCY