Skip to content

Instantly share code, notes, and snippets.

@PaulSec
Created February 11, 2020 14:10
Show Gist options
  • Save PaulSec/97f5cde082058a1836b1eda86d308794 to your computer and use it in GitHub Desktop.
Save PaulSec/97f5cde082058a1836b1eda86d308794 to your computer and use it in GitHub Desktop.
#!/bin/bash
cd /path/to/my/app/
source env/bin/activate
python manage.py makemigrations;
python manage.py migrate;
python manage.py collectstatic --noinput;
gunicorn --access-logfile - --workers 1 --bind unix:/path/to/my/app/socket.sock cfptime.wsgi:application
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment