lib/capistrano/templates/puma.rb.erb in capistrano3-puma-0.1.0 vs lib/capistrano/templates/puma.rb.erb in capistrano3-puma-0.1.2
- old
+ new
@@ -9,5 +9,11 @@
threads <%=fetch(:puma_threads).join(',')%>
bind "<%=fetch(:puma_bind)%>"
workers <%= puma_workers %>
preload_app!
+
+on_restart do
+ puts 'On restart...Refresh ENV["BUNDLE_GEMFILE"]'
+ ENV["BUNDLE_GEMFILE"] = "<%= fetch(:bundle_gemfile, "#{current_path}/Gemfile") %>"
+end
+