Added supervisor conf

This commit is contained in:
Felipe Martín 2013-05-23 12:44:09 +02:00
parent 8657dad379
commit b7ece75cb5
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,8 @@
[program:gunicorn]
command = /home/app/virtualenv/bin/python /home/app/app/manage.py run_gunicorn -w 4 -k gevent
directory = /home/app/app
user = app
autostart = true
autorestart = true
stdout_logfile = /var/log/supervisor/gunicorn.log
stderr_logfile = /var/log/supervisor/gunicorn_err.log

View File

@ -25,6 +25,8 @@ pacman -S git --noconfirm
echo "=> Installing supervisor"
pacman -S supervisor --noconfirm
systemctl start supervisord
systemctl enable supervisord
echo "=> Installing nodejs and dependencies"
pacman -S nodejs --noconfirm
@ -45,3 +47,5 @@ su - app -c "echo 'source .environment' > .bash_profile"
echo "[REMEMBER!]"
echo " - Create ssh keypair for the app user."
echo " - Configure sudo to let app user execute the maintenance scripts."
echo " - Configure supervisor to include the app configuration."
echo " - Configure nginx to include the app configuration."