README.md in capistrano3-puma-5.1.1 vs README.md in capistrano3-puma-5.2.0

- old
+ new

@@ -126,10 +126,16 @@ RAILS_ENV=development PUMA_METRICS_HTTP=tcp://0.0.0.0:9393 ] ``` +To use [phased restart](https://github.com/puma/puma/blob/master/docs/restart.md) for zero downtime deployments: + +```ruby + set :puma_phased_restart, true +``` + ### Systemd Socket Activation Systemd socket activation starts your app upon first request if it is not already running ```ruby @@ -190,9 +196,10 @@ set :puma_systemctl_user, :system # accepts :user set :puma_enable_lingering, fetch(:puma_systemctl_user) != :system # https://wiki.archlinux.org/index.php/systemd/User#Automatic_start-up_of_systemd_user_instances set :puma_lingering_user, fetch(:user) set :puma_service_unit_env_file, nil set :puma_service_unit_env_vars, [] + set :puma_phased_restart, false set :nginx_config_name, "#{fetch(:application)}_#{fetch(:stage)}" set :nginx_flags, 'fail_timeout=0' set :nginx_http_flags, fetch(:nginx_flags) set :nginx_server_name, "localhost #{fetch(:application)}.local"