Skip to content

Instantly share code, notes, and snippets.

@marianobrc
Created February 10, 2022 21:25
Show Gist options
  • Save marianobrc/f07dfa95bda490a49f2c0459f97fc686 to your computer and use it in GitHub Desktop.
Save marianobrc/f07dfa95bda490a49f2c0459f97fc686 to your computer and use it in GitHub Desktop.
A script to start gunicorn to serve a django app in production
#!/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