Created
June 26, 2018 14:32
-
-
Save raybesiga/8413c2443bd577b0085389b791ff6ab9 to your computer and use it in GitHub Desktop.
Manual deployment script for django project on Ubuntu production server
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
ssh server | |
cd /var/www/prod/{project} | |
source /opt/venvs/{project}/bin/activate | |
sudo -u www-data git pull origin master | |
python manage.py collectstatic | |
sudo supervisorctl restart {project} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment