diff --git a/Procfile b/Procfile index d48b0373b..d15c835b8 100644 --- a/Procfile +++ b/Procfile @@ -1,4 +1,4 @@ -web: if [ "$RUN_STREAMING" != "true" ]; then BIND=0.0.0.0 bundle exec puma -C config/puma.rb; else BIND=0.0.0.0 node ./streaming; fi +web: bin/heroku-web worker: bundle exec sidekiq # For the streaming API, you need a separate app that shares Postgres and Redis: diff --git a/bin/heroku-web b/bin/heroku-web new file mode 100755 index 000000000..219ef35b9 --- /dev/null +++ b/bin/heroku-web @@ -0,0 +1,2 @@ +#!/bin/bash +if [ "$RUN_STREAMING" != "true" ]; then BIND=0.0.0.0 bundle exec puma -C config/puma.rb; else BIND=0.0.0.0 node ./streaming; fi \ No newline at end of file