Skip to content
Snippets Groups Projects
Commit bcf20d4c authored by florimondmanca's avatar florimondmanca
Browse files

fix TravisCI deploy stage, fix Procfile

parent e58f0a47
Branches
No related tags found
1 merge request!3Staging
......@@ -36,9 +36,10 @@ deploy:
master: oser-backend-production
staging: oser-backend-staging
run:
- cd oser_backend
# run database migrations once on Heroku
- "python manage.py makemigrations"
- "python manage.py migrate"
- python manage.py makemigrations
- python manage.py migrate
api_key:
# Encrypted API key obtained from the following command
# (requires TravisCI and Heroku CLI installed)
......
web: gunicorn oser_backend.wsgi:application \
--bind 0.0.0.0:$PORT \
--workers 1 \
--access-logfile=- \
--reload \
web: gunicorn oser_backend.wsgi:application --bind 0.0.0.0:$PORT --workers 3
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment