Merge branch 'master' of git.rrerr.net:nilsding/retrospring
This commit is contained in:
commit
5e8ca3b698
|
@ -1,6 +1,8 @@
|
||||||
namespace :deploy do
|
namespace :deploy do
|
||||||
task :start do
|
task :start do
|
||||||
on roles(:all) do
|
on roles(:all) do
|
||||||
|
puts "------- skip start"
|
||||||
|
next
|
||||||
rvm_prefix = "#{fetch(:rvm1_auto_script_path)}/rvm-auto.sh #{fetch(:rvm1_ruby_version)}"
|
rvm_prefix = "#{fetch(:rvm1_auto_script_path)}/rvm-auto.sh #{fetch(:rvm1_ruby_version)}"
|
||||||
execute :tmux, 'new-session',
|
execute :tmux, 'new-session',
|
||||||
'-d',
|
'-d',
|
||||||
|
@ -13,6 +15,8 @@ namespace :deploy do
|
||||||
|
|
||||||
task :stop do
|
task :stop do
|
||||||
on roles(:all) do
|
on roles(:all) do
|
||||||
|
puts "------- skip stop"
|
||||||
|
next
|
||||||
execute :sh, '-c', '\'tmux list-panes -t retrospring -F "#{pane_pid}" | xargs kill\''
|
execute :sh, '-c', '\'tmux list-panes -t retrospring -F "#{pane_pid}" | xargs kill\''
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -20,6 +24,8 @@ namespace :deploy do
|
||||||
desc 'Restart the server'
|
desc 'Restart the server'
|
||||||
task :restart do
|
task :restart do
|
||||||
on roles(:all) do
|
on roles(:all) do
|
||||||
|
puts "------- skip restart"
|
||||||
|
next
|
||||||
info 'Restarting application server'
|
info 'Restarting application server'
|
||||||
invoke('deploy:stop')
|
invoke('deploy:stop')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue