Server

  • Run local testing server with Python (Link)

apply updates

  1. Pull and overwrite local changes
git add .
git stash
git pull
  1. compile static files
python manage.py collectstatic
  1. reload nginx and gunicorn
sudo systemctl reload nginx
kill -HUP 944 #<---944 = pid of Gunicorn main process/
ps -aux | grep gunicorn #<--- to find pid