Created
February 10, 2022 21:25
-
-
Save marianobrc/f07dfa95bda490a49f2c0459f97fc686 to your computer and use it in GitHub Desktop.
A script to start gunicorn to serve a django app in production
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
python manage.py migrate | |
python manage.py collectstatic --noinput | |
gunicorn app.wsgi --bind 0.0.0.0:8000 --timeout 60 --access-logfile - --error-logfile - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment