]> cat aescling's git repositories - mastodon.git/commitdiff
fix: make Procfile compatible with herokuish (#12685)
authorAurelia <aurelia@schittler.dev>
Sat, 29 Aug 2020 17:00:30 +0000 (19:00 +0200)
committerGitHub <noreply@github.com>
Sat, 29 Aug 2020 17:00:30 +0000 (19:00 +0200)
Co-authored-by: Aurelia <aurelia@serenitylabs.cloud>
Procfile
bin/heroku-web [new file with mode: 0755]

index d48b0373b05233df9cb41d2d1a0b33a7feb16529..d15c835b867517918a583987552da231be9c5487 100644 (file)
--- 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 (executable)
index 0000000..219ef35
--- /dev/null
@@ -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