Skip to content

Instantly share code, notes, and snippets.

@adavidramos
Created July 25, 2019 01:58
Show Gist options
  • Save adavidramos/293f31c620dc26429db91110273836df to your computer and use it in GitHub Desktop.
Save adavidramos/293f31c620dc26429db91110273836df to your computer and use it in GitHub Desktop.
## Starting and stopping the server
sudo /bin/su - www-data
cd /srv/www/production/kcdc && source bin/activate
# stop server:
kill $(cat var/gunicorn.pid)
# start server:
python kcdc3/manage.py run_gunicorn --daemon --pid=/srv/www/production/kcdc/var/gunicorn.pid --access-logfile=/srv/www/production/kcdc/var/access.log --error-logfile=/srv/www/production/kcdc/var/error.log --log-level=DEBUG --bind=127.0.0.1:8001;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment