Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Manual deployment script for django project on Ubuntu production server
ssh server
cd /var/www/prod/{project}
source /opt/venvs/{project}/bin/activate
sudo -u www-data git pull origin master
python collectstatic
sudo supervisorctl restart {project}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment