From 3b4bd88c15ec4d1916ef5522619888953b8787ce Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Tue, 16 Jul 2019 19:39:15 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E3=82=AA=E3=83=AA=E3=82=B8=E3=83=8A?= =?UTF-8?q?=E3=83=AB=E3=83=87=E3=83=BC=E3=82=BF=E3=82=92/home/webadm/works?= =?UTF-8?q?/public=E9=85=8D=E4=B8=8B=E3=81=AB=E3=82=B3=E3=83=94=E3=83=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ``` --- a/tasks/production.rake +++ b/tasks/production.rake @@ -16,5 +16,7 @@ task :prod => [:prep] do 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' end ``` --- tasks/production.rake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasks/production.rake b/tasks/production.rake index b38e6ed..f66c583 100644 --- a/tasks/production.rake +++ b/tasks/production.rake @@ -16,5 +16,7 @@ task :prod => [:prep] do 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' end