Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raybesiga/8413c2443bd577b0085389b791ff6ab9 to your computer and use it in GitHub Desktop.
Save raybesiga/8413c2443bd577b0085389b791ff6ab9 to your computer and use it in GitHub Desktop.
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