diff --git a/Procfile b/Procfile index 0194076..b3ffc48 100644 --- a/Procfile +++ b/Procfile @@ -1 +1,2 @@ -web: honcho -f ProcfileHoncho start \ No newline at end of file +webui: PYTHONPATH=joker: python webui.py +worker: PYTHONPATH=joker: celery worker --app=rubick.celery:app diff --git a/ProcfileHoncho b/Procfile.production similarity index 100% rename from ProcfileHoncho rename to Procfile.production diff --git a/vagrant/cookbooks/rubick/recipes/default.rb b/vagrant/cookbooks/rubick/recipes/default.rb index 7b48e46..27f491c 100644 --- a/vagrant/cookbooks/rubick/recipes/default.rb +++ b/vagrant/cookbooks/rubick/recipes/default.rb @@ -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'