From 2cb24291100369b41ce854e0c3e497ff00e67b0b Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Sun, 5 Jan 2020 19:06:49 +0800 Subject: [PATCH] [ci skip] Change the deployment target servres. --- tasks/production.rake | 8 ++++---- tasks/staging.rake | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tasks/production.rake b/tasks/production.rake index f66c583..17e28dd 100644 --- a/tasks/production.rake +++ b/tasks/production.rake @@ -15,8 +15,8 @@ task :prod => [:prep] do end end - sh 'ssh -p 10022 webadm@10.0.1.234 "rm -rf /var/www/blog/*"' - sh 'ssh -p 10022 webadm@10.0.1.234 "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.234:/home/webadm/works/public' + sh 'ssh -p 10022 webadm@10.0.1.166 "rm -rf /var/www/blog/*"' + 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.166:/var/www/blog' + sh 'rsync -e "ssh -p 10022" -rltvz --omit-dir-times --delete public/ webadm@10.0.1.166:/home/webadm/works/public' end diff --git a/tasks/staging.rake b/tasks/staging.rake index 1dc18b5..08d94c5 100644 --- a/tasks/staging.rake +++ b/tasks/staging.rake @@ -15,6 +15,6 @@ task :stag => [:prep] do end end - sh 'ssh -p 10022 webadm@10.0.1.234 "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 '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.166:/var/www/test' end