Merge pull request #39 from kazu634/deploy-original-content-to-home-dir

Deploy original content to home dir
This commit is contained in:
Kazuhiro MUSASHI 2019-07-16 18:42:01 +07:00 committed by GitHub
commit 0a0f8e8187
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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