オリジナルデータを/home/webadm/works/public配下にコピー
``` --- 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 ```
This commit is contained in:
parent
391e1cc461
commit
3b4bd88c15
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue