Commit 00fc17b2 authored by Daigo 3 Dango's avatar Daigo 3 Dango Committed by Eugen Rochko

Bind servers to in Procfile (#11378)

* Bind to

* Make Procfile common to main and streaming apps
parent c669bb42
web: bundle exec puma -C config/puma.rb
web: if [ "$RUN_STREAMING" != "true" ]; then BIND= bundle exec puma -C config/puma.rb; else BIND= node ./streaming; fi
worker: bundle exec sidekiq
# For the streaming API, you need a separate app that shares Postgres and Redis:
# heroku create
# heroku buildpacks:add heroku/nodejs
# heroku config:set RUN_STREAMING=true
# heroku addons:attach <main-app>::DATABASE
# heroku addons:attach <main-app>::REDIS
# and let the main app use the separate app:
# heroku config:set STREAMING_API_BASE_URL=wss://<streaming-app> -a <main-app>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment