Merge pull request #29 from kazu634/support-staging-deploy

Staging環境へのデプロイをするように変更する
This commit is contained in:
Kazuhiro MUSASHI 2019-05-06 10:15:34 +07:00 committed by GitHub
commit c2ca66e717
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 5 deletions

View File

@ -36,5 +36,5 @@ task :build do
sh 'rm -rf *'
end
sh 'hugo'
sh 'hugo -e staging -v'
end

View File

@ -12,8 +12,6 @@ task :deploy => [:build] do
end
end
sh 'rsync -e "ssh -p 10022" -az --delete public webadm@10.0.1.234:~/works'
sh 'ssh -p 10022 webadm@10.0.1.234 "rm -rf /var/www/blog/*"'
sh 'ssh -p 10022 webadm@10.0.1.234 "cp -pr ~/works/public/* /var/www/blog/"'
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'
end