Use rsync for deployment.
This commit is contained in:
parent
934abb5152
commit
ccfb40b72a
6
Rakefile
6
Rakefile
|
@ -30,10 +30,10 @@ namespace :deploy do
|
||||||
echo "Resetting git & fetching from origin..."
|
echo "Resetting git & fetching from origin..."
|
||||||
git reset --hard HEAD &&
|
git reset --hard HEAD &&
|
||||||
git pull origin master &&
|
git pull origin master &&
|
||||||
echo "generating page..."
|
echo "generating page..." &&
|
||||||
rake generate &&
|
rake generate &&
|
||||||
echo "copy to webserver directory..."
|
echo "copy to webserver directory..." &&
|
||||||
cp -ar #{PRODUCTION[:source]}/* #{PRODUCTION[:dest]}
|
rsync -va #{PRODUCTION[:source]} #{PRODUCTION[:dest]} &&
|
||||||
echo "deployment done"
|
echo "deployment done"
|
||||||
) | tee #{PRODUCTION[:log]}
|
) | tee #{PRODUCTION[:log]}
|
||||||
EOF
|
EOF
|
||||||
|
|
Loading…
Reference in a new issue