lib/potassium/assets/config/puma.rb in potassium-5.2.0 vs lib/potassium/assets/config/puma.rb in potassium-5.2.1

- old
+ new

@@ -18,10 +18,14 @@ preload_app! rackup DefaultRackup port ENV.fetch('PORT', 3000) -environment ENV.fetch("RACK_ENV", "development") +rack_env = ENV.fetch("RACK_ENV", "development") +environment rack_env + +# Set 1 day timeout for workers while developing +worker_timeout 1.day.seconds.to_i if rack_env == "development" on_worker_boot do # Worker specific setup for Rails 4.1+ # See: https://devcenter.heroku.com/articles/deploying-rails-applications-with-the-puma-web-server#on-worker-boot ActiveRecord::Base.establish_connection