0.03
No commit activity in last 3 years
No release in over 3 years
A Puma plugin that contains the default Heroku config
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

>= 5.0, < 6.0
 Project Readme

puma-heroku

This gem is being sunset. Puma 5.0+ now configures Puma in most of the ways that this plugin did.

Removing this gem from your Gemfile

  1. Upgrade to Puma 5.0.
  2. Add port ENV['PORT'] || 3000 to your Puma config file, or -p ${PORT:-3000} to your puma invocation in your Procfile.
  3. Remove this gem.

More Notes on Upgrading from 1.0

In 1.x, this plugin set workers to 1 if WEB_CONCURRENCY is not set. However, this isn't optimal, as it creates a master and worker process, when instead we could just use single mode (workers 0) and save memory. 2.x of this plugin uses the Puma 5 default, which is workers 0 if WEB_CONCURRENCY is not set.

If you are using Rails 4.0 or less, you will have to add your own on_worker_boot block., it has been removed.

As of Puma 5.0/this plugin 2.x, all this gem does is set the port to ENV["PORT"]. In Puma 6.0, Puma will listen to ENV["PORT"] by default, and this plugin will receive no further updates (because all of its changes will be merged into the Puma default config).

License

The gem is available as open source under the terms of the MIT License.