1
Fork 0

log deployment process

This commit is contained in:
Jan-Erik Rediger 2011-08-25 12:31:52 +02:00
parent bf47b2413d
commit 1734075724

View file

@ -24,12 +24,16 @@ namespace :deploy do
verbose(true) {
sh <<-EOF
(
date;
echo -n "Production deployment: "; date;
echo "Resetting git & fetching from origin..."
git reset --hard HEAD &&
git pull origin master &&
echo "generating page..."
rake generate &&
echo "copy to webserver directory..."
cp -ar #{PRODUCTION[:source]}/* #{PRODUCTION[:dest]}
) &> #{PRODUCTION[:log]}
echo "deployment done"
) | tee #{PRODUCTION[:log]}
EOF
}
end