- Configures nginx sites
- Configures uwsgi upstart scripts
Allows you to do:
sudo service [ nginx | uwsgi-site | uwsgi-deploy | uwsgi-hosting ]
[ start | stop | restart | reload ]
sudo APPCUBATOR_MODE=staging python setup_stuff.py
Then run the following in /var/www/appcubator-sysadmin:
mkdir logs
mkdir sockets
mkdir pidfiles
sudo chgrp www-data logs
sudo chgrp www-data sockets
sudo chgrp www-data pidfiles
sudo chmod g+rwx logs
sudo chmod g+rwx sockets
sudo chmod g+rwx pidfiles