Simplified Procfiles

This commit is contained in:
Maxim Kulkin 2013-10-24 18:43:30 +04:00
parent 709faccc47
commit 73c4b0c80b
3 changed files with 3 additions and 4 deletions

View File

@ -1 +1,2 @@
web: honcho -f ProcfileHoncho start
webui: PYTHONPATH=joker: python webui.py
worker: PYTHONPATH=joker: celery worker --app=rubick.celery:app

View File

@ -11,10 +11,8 @@ end
bash 'Run application' do
code <<-EOS
echo "webui: PYTHONPATH=joker: python webui.py" > ProcfileHonchoLocal
echo "worker: PYTHONPATH=joker: celery worker --app=rubick.celery:app" >> ProcfileHonchoLocal
if ! tmux has-session -t dev; then
tmux new-session -d -s dev "honcho -f ProcfileHonchoLocal start"
tmux new-session -d -s dev "honcho start"
fi
EOS
user 'vagrant'