Skip to content

Instantly share code, notes, and snippets.

@adamlogic
Created September 8, 2018 14:51
Show Gist options
  • Save adamlogic/781e6ed641961e36ba60084cdf9ca2de to your computer and use it in GitHub Desktop.
Save adamlogic/781e6ed641961e36ba60084cdf9ca2de to your computer and use it in GitHub Desktop.
Sample Procfile using parameter expansion
release: RAILS_MAX_THREADS=1 rails db:migrate
web: RAILS_MAX_THREADS=$PUMA_THREADS rails c
worker: RAILS_MAX_THREADS=$SIDEKIQ_THREADS bundle exec sidekiq
# heroku config:add RAILS_MAX_THREADS=1 so one-off dynos don't consume more than necessary
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment