diff options
author | Aurelia <aurelia@schittler.dev> | 2020-08-29 19:00:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-29 19:00:30 +0200 |
commit | 8630afb468baf1ae654116784c3a636213e98bae (patch) | |
tree | fc4505dc2dc6f0a7f01f68c03b97672420f3ca4c | |
parent | 64ef37b89de806f49cc59e011aa0ee2039c82c46 (diff) |
fix: make Procfile compatible with herokuish (#12685)
Co-authored-by: Aurelia <aurelia@serenitylabs.cloud>
-rw-r--r-- | Procfile | 2 | ||||
-rwxr-xr-x | bin/heroku-web | 2 |
2 files changed, 3 insertions, 1 deletions
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 |