From ccfb40b72a134cffba5d8c60e4bc24bf7a557818 Mon Sep 17 00:00:00 2001 From: Jan-Erik Rediger Date: Fri, 14 Jun 2013 15:10:43 +0200 Subject: [PATCH] Use rsync for deployment. --- Rakefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Rakefile b/Rakefile index cfa9f15..c913696 100644 --- a/Rakefile +++ b/Rakefile @@ -30,10 +30,10 @@ namespace :deploy do echo "Resetting git & fetching from origin..." git reset --hard HEAD && git pull origin master && - echo "generating page..." + echo "generating page..." && rake generate && - echo "copy to webserver directory..." - cp -ar #{PRODUCTION[:source]}/* #{PRODUCTION[:dest]} + echo "copy to webserver directory..." && + rsync -va #{PRODUCTION[:source]} #{PRODUCTION[:dest]} && echo "deployment done" ) | tee #{PRODUCTION[:log]} EOF