lib/capistrano-deploy-management/puma.rb in capistrano-deploy-management-0.1.16 vs lib/capistrano-deploy-management/puma.rb in capistrano-deploy-management-0.1.17
- old
+ new
@@ -2,11 +2,10 @@
module Puma
def self.load_into(configuration)
configuration.load do
# set(:puma_config) { "#{current_path}/config/puma.rb" }
- set(:puma_port) { "cat #{current_path}/config/puma.rb" }
set(:puma_pidfile) { "#{deploy_to}/shared/pids/puma.pid" }
set(:puma_pid) { "cat #{deploy_to}/shared/pids/puma.pid" }
namespace :puma do
desc 'Restart puma.'
@@ -17,10 +16,11 @@
desc 'Start puma.'
task :start, :roles => :app, :except => {:no_release => true} do
# run "cd #{current_path} && puma -C #{puma_config}"
# TODO: fix hardcoded port setting by using a config file
- run "cd #{current_path} && RAILS_ENV=#{rails_env} bundle exec rails s puma --port 3005 --pidfile '#{puma_pidfile}' -e #{rails_env}"
+ # run "cd #{current_path} && RAILS_ENV=#{rails_env} bundle exec rails s puma --port 3005 --pidfile #{puma_pidfile} -e #{rails_env}"
+ run "cd #{current_path} && RAILS_ENV=#{rails_env} bundle exec rails s puma --port 3005 -e #{rails_env}"
end
desc 'Stop puma.'
task :stop, :roles => :app, :except => {:no_release => true} do
run "test -s #{puma_pidfile} && kill $(#{puma_pid}) || echo 'puma not running. nothing to kill.'"
\ No newline at end of file