From c5d6e2c5ab5c217cb03a685dfe1168405bc82048 Mon Sep 17 00:00:00 2001 From: "Javier G. Montoya S" Date: Thu, 6 Aug 2020 16:35:20 -0400 Subject: [PATCH] fix(config/puma): replace rails .day method --- CHANGELOG.md | 1 + lib/potassium/assets/config/puma.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 26668f56..766db0b5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ Features: Fix: - Fix shrine issues related to configuration and uploader validation [#302](https://github.com/platanus/potassium/pull/302) - Fix database recipe not running recommended generator for strong_migrations gem [#310](https://github.com/platanus/potassium/pull/310) + - Fix puma config that was causing it to crash on server start while on development [#313](https://github.com/platanus/potassium/pull/313) ## 6.0.0 diff --git a/lib/potassium/assets/config/puma.rb b/lib/potassium/assets/config/puma.rb index 83ed82dd..3afb025f 100644 --- a/lib/potassium/assets/config/puma.rb +++ b/lib/potassium/assets/config/puma.rb @@ -24,7 +24,7 @@ environment rack_env # Set 1 day timeout for workers while developing -worker_timeout 1.day.seconds.to_i if rack_env == "development" +worker_timeout 24 * 60 * 60 if rack_env == "development" on_worker_boot do # Worker specific setup for Rails 4.1+