where i deviate from standard mastodon assets
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Procfile 565B

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>