diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2016-02-24 12:59:01 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2016-02-24 12:59:01 -0300 |
commit | 685203917378dbdf8c836d5bdaabccd31f4e5f98 (patch) | |
tree | e5fa983bdd1c5c20fe9310cbd60cb83f91cffe94 /railties | |
parent | 826420b5fce3fcdfc6ee4ee29524145db6021d71 (diff) | |
download | rails-685203917378dbdf8c836d5bdaabccd31f4e5f98.tar.gz rails-685203917378dbdf8c836d5bdaabccd31f4e5f98.tar.bz2 rails-685203917378dbdf8c836d5bdaabccd31f4e5f98.zip |
Enable tmp_restart plugin for puma
Fixes #23855
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/config/puma.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/config/puma.rb b/railties/lib/rails/generators/rails/app/templates/config/puma.rb index 1bf274bc66..c7f311f811 100644 --- a/railties/lib/rails/generators/rails/app/templates/config/puma.rb +++ b/railties/lib/rails/generators/rails/app/templates/config/puma.rb @@ -42,3 +42,6 @@ environment ENV.fetch("RAILS_ENV") { "development" } # on_worker_boot do # ActiveRecord::Base.establish_connection if defined?(ActiveRecord) # end + +# Allow puma to be restarted by `rails restart` command. +plugin :tmp_restart |