Created
March 18, 2017 15:57
-
-
Save greut/48ac24b766d7075be6f148523c41d045 to your computer and use it in GitHub Desktop.
Deploying Django application
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/bash | |
# | |
# Usage: ssh <host> ./deploy.sh | |
# | |
set -xe | |
. ~/.bash_profile | |
cd www/app | |
. bin/activate | |
export DJANGO_SETTINGS_MODULE=chain_reaction.settings.production | |
git pull | |
python manage.py migrate | |
python manage.py collectstatic --noinput | |
sudo sv restart uwsgi | |
sudo sv reload nginx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment