1
0

Procfile 565 B

1234567891011121314
  1. 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
  2. worker: bundle exec sidekiq
  3. # For the streaming API, you need a separate app that shares Postgres and Redis:
  4. #
  5. # heroku create
  6. # heroku buildpacks:add heroku/nodejs
  7. # heroku config:set RUN_STREAMING=true
  8. # heroku addons:attach <main-app>::DATABASE
  9. # heroku addons:attach <main-app>::REDIS
  10. #
  11. # and let the main app use the separate app:
  12. #
  13. # heroku config:set STREAMING_API_BASE_URL=wss://<streaming-app>.herokuapp.com -a <main-app>