1
0
Fork 0
This repository has been archived on 2023-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
lpr-partynest/lib/capistrano/tasks/puma.rake

16 lines
365 B
Ruby

# frozen_string_literal: true
namespace :puma do
desc 'Stop Puma web server'
task :stop do
on roles(:web) do
within release_path do
statefile = File.join shared_path, 'tmp', 'pids', 'puma.state'
execute :bundle, :exec, :pumactl, '--state', statefile, :stop
rescue SSHKit::Command::Failed
nil
end
end
end
end