[ci skip] Change the deployment target servres.

This commit is contained in:
Kazuhiro MUSASHI 2020-01-05 19:06:49 +08:00
parent 0259891713
commit 2cb2429110
2 changed files with 6 additions and 6 deletions

View File

@ -15,8 +15,8 @@ task :prod => [:prep] do
end end
end end
sh 'ssh -p 10022 webadm@10.0.1.234 "rm -rf /var/www/blog/*"' sh 'ssh -p 10022 webadm@10.0.1.166 "rm -rf /var/www/blog/*"'
sh 'ssh -p 10022 webadm@10.0.1.234 "rm -rf /home/webadm/works/public/*"' sh 'ssh -p 10022 webadm@10.0.1.166 "rm -rf /home/webadm/works/public/*"'
sh 'rsync -e "ssh -p 10022" -rltvz --omit-dir-times --delete public/ webadm@10.0.1.234:/var/www/blog' sh 'rsync -e "ssh -p 10022" -rltvz --omit-dir-times --delete public/ webadm@10.0.1.166:/var/www/blog'
sh 'rsync -e "ssh -p 10022" -rltvz --omit-dir-times --delete public/ webadm@10.0.1.234:/home/webadm/works/public' sh 'rsync -e "ssh -p 10022" -rltvz --omit-dir-times --delete public/ webadm@10.0.1.166:/home/webadm/works/public'
end end

View File

@ -15,6 +15,6 @@ task :stag => [:prep] do
end end
end end
sh 'ssh -p 10022 webadm@10.0.1.234 "rm -rf /var/www/test/*"' sh 'ssh -p 10022 webadm@10.0.1.166 "rm -rf /var/www/test/*"'
sh 'rsync -e "ssh -p 10022" -rltvz --omit-dir-times --delete public/ webadm@10.0.1.234:/var/www/test' sh 'rsync -e "ssh -p 10022" -rltvz --omit-dir-times --delete public/ webadm@10.0.1.166:/var/www/test'
end end