Created
July 25, 2019 01:58
-
-
Save adavidramos/293f31c620dc26429db91110273836df to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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