From 8630afb468baf1ae654116784c3a636213e98bae Mon Sep 17 00:00:00 2001 From: Aurelia Date: Sat, 29 Aug 2020 19:00:30 +0200 Subject: [PATCH] fix: make Procfile compatible with herokuish (#12685) Co-authored-by: Aurelia --- Procfile | 2 +- bin/heroku-web | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100755 bin/heroku-web 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