README.md in capistrano3-puma-4.0.0 vs README.md in capistrano3-puma-5.0.0.beta1

- old
+ new

@@ -24,10 +24,18 @@ install_plugin Capistrano::Puma::Workers # if you want to control the workers (in cluster mode) install_plugin Capistrano::Puma::Jungle # if you need the jungle tasks install_plugin Capistrano::Puma::Monit # if you need the monit tasks install_plugin Capistrano::Puma::Nginx # if you want to upload a nginx site template ``` +You will need to select your service manager +```ruby +install_plugin Capistrano::Puma::Daemon # If you using puma daemonized (not supported in Puma 5+) +``` +or +```ruby +install_plugin Capistrano::Puma::Systemd # if you use SystemD +``` To prevent loading the hooks of the plugin, add false to the load_hooks param. ```ruby # Capfile @@ -93,10 +101,23 @@ ```ruby set :puma_jungle_conf, '/etc/puma.conf' set :puma_run_path, '/usr/local/bin/run-puma' ``` +### Systemd + +Install Systemd plugin in `Capfile`: +```ruby +install_plugin Capistrano::Puma +install_plugin Capistrano::Puma::Systemd +``` + +To generate unit file use: +``` +cap production puma:systemd:config puma:systemd:enable +``` + ### Multi bind Multi-bind can be set with an array in the puma_bind variable ```ruby set :puma_bind, %w(tcp://0.0.0.0:9292 unix:///tmp/puma.sock) @@ -146,9 +167,10 @@ set :nginx_sites_enabled_path, '/etc/nginx/sites-enabled' set :nginx_socket_flags, fetch(:nginx_flags) set :nginx_ssl_certificate, "/etc/ssl/certs/#{fetch(:nginx_config_name)}.crt" set :nginx_ssl_certificate_key, "/etc/ssl/private/#{fetch(:nginx_config_name)}.key" set :nginx_use_ssl, false + set :nginx_use_http2, true set :nginx_downstream_uses_ssl, false ``` __Notes:__ If you are setting values for variables that might be used by other plugins, use `append` instead of `set`. For example: ```ruby