From 2e0944eb9333aa92882432e162c44211c8e3ab1e Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Sun, 20 Aug 2023 20:00:04 +0900 Subject: [PATCH] Update deploy target to `10.0.1.222`. --- tasks/production.rake | 8 ++++---- tasks/staging.rake | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) mode change 100644 => 100755 tasks/production.rake mode change 100644 => 100755 tasks/staging.rake diff --git a/tasks/production.rake b/tasks/production.rake old mode 100644 new mode 100755 index f898dbb..aa6aab8 --- a/tasks/production.rake +++ b/tasks/production.rake @@ -10,8 +10,8 @@ task :prod => [:init, :prep, :tcard] do sh 'find public/ -type f | egrep "\.(css|js|png|jpg|html|JPG|PNG|CSS|JS|HTML)$" | xargs -n 1 -i% -P 0 sh -c "cp % %.bk && gzip % && mv %.bk %"' - 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' + sh 'ssh -p 10022 webadm@10.0.1.222 "rm -rf /var/www/blog/*"' + sh 'ssh -p 10022 webadm@10.0.1.222 "rm -rf /home/webadm/works/public/*"' + sh 'rsync -e "ssh -p 10022" -rltvz --omit-dir-times --delete public/ webadm@10.0.1.222:/var/www/blog' + sh 'rsync -e "ssh -p 10022" -rltvz --omit-dir-times --delete public/ webadm@10.0.1.222:/home/webadm/works/public' end diff --git a/tasks/staging.rake b/tasks/staging.rake old mode 100644 new mode 100755 index 4ee81a2..10cf1e5 --- a/tasks/staging.rake +++ b/tasks/staging.rake @@ -11,5 +11,5 @@ task :stag => [:init, :prep, :tcard] do sh 'find public/ -type f | egrep "\.(css|js|png|jpg|html|JPG|PNG|CSS|JS|HTML)$" | xargs -n 1 -i% -P 0 sh -c "cp % %.bk && gzip % && mv %.bk %"' 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' + sh 'rsync -e "ssh -p 10022" -rltvz --omit-dir-times --delete public/ webadm@10.0.1.222:/var/www/test' end