Sha256: a34904695d1276d2283a375ac5526f6f1e781aa521642bf911f1554aaba12408
Contents?: true
Size: 653 Bytes
Versions: 2
Compression:
Stored size: 653 Bytes
Contents
Capistrano::Configuration.instance.load do namespace :puma do namespace :upstart do %w(start stop status).each do |t| desc "Perform #{t} of the api_puma service" task t, roles: :app, except: { no_release: true } do sudo "#{t} api_puma" end end desc 'Perform a restart of the api_puma service' task :restart, roles: :app, except: { no_release: true } do run <<-CMD pid=`status api_puma | grep -o -E '[0-9]+'`; if [ -z $pid ]; then sudo start api_puma; else kill -USR1 $pid; fi CMD end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
elocal_capistrano-1.0.1 | lib/elocal_capistrano/puma.rb |
elocal_capistrano-1.0.0 | lib/elocal_capistrano/puma.rb |