Skip to content

Latest commit

 

History

History
executable file
·
28 lines (20 loc) · 595 Bytes

File metadata and controls

executable file
·
28 lines (20 loc) · 595 Bytes

Appcubator-sysadmin

  1. Configures nginx sites
  2. Configures uwsgi upstart scripts

Allows you to do:

sudo service [ nginx | uwsgi-site | uwsgi-deploy | uwsgi-hosting ]
[ start | stop | restart | reload ]

Usage

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