lib/capistrano/tasks/jungle.cap in capistrano3-puma-0.2.2 vs lib/capistrano/tasks/jungle.cap in capistrano3-puma-0.3.3
- old
+ new
@@ -14,16 +14,16 @@
on roles(fetch(:puma_role)) do |role|
@role = role
template_puma 'run-puma', "#{fetch(:tmp_dir)}/run-puma", role
execute "chmod +x #{fetch(:tmp_dir)}/run-puma"
sudo "mv #{fetch(:tmp_dir)}/run-puma #{fetch(:puma_run_path)}"
- if test '[ -f /etc/lsb-release ]'
- #Debian flavor OS
- debian_install
- elsif test '[ -f /etc/redhat-release ]'
+ if test '[ -f /etc/redhat-release ]'
#RHEL flavor OS
rhel_install
+ elsif test '[ -f /etc/lsb-release ]'
+ #Debian flavor OS
+ debian_install
else
#Some other OS
error 'This task is not supported for your OS'
end
sudo "touch #{fetch(:puma_jungle_conf)}"
@@ -70,10 +70,10 @@
%w[start stop restart status].each do |command|
desc "#{command} puma"
task command do
on roles(fetch(:puma_role)) do
- sudo "service puma #{command} #{current_path}"
+ sudo "service puma #{command} app=#{current_path}"
end
end
end
end