Skip to content

Instantly share code, notes, and snippets.

Embed
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 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
You can’t perform that action at this time.