Add this line in Capfile
:
require "capistrano/puma"
runit:puma:setup
-- setup puma runit service.runit:puma:enable
-- enable and autostart service.runit:puma:disable
-- stop and disable service.runit:puma:start
-- start service.runit:puma:stop
-- stop service.runit:puma:restart
-- restart service.runit:puma:phased_restart
-- run phased restart.
runit_puma_run_template
-- path to ERB template ofrun
file. Default value: internal default template (lib/capistrano/runit/templates/run-puma.erb
).runit_puma_workers
-- number of puma workers. Default value: 1.runit_puma_threads_min
-- minimal threads to use. Default value: 0.runit_puma_threads_max
-- maximal threads to use. Default value: 16.runit_puma_bind
-- bind URI. Examples: tcp://127.0.0.1:8080, unix:///tmp/puma.sock. Default value: nil.