[ci skip] Change the deployment target servres.
This commit is contained in:
parent
0259891713
commit
2cb2429110
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue