log deployment process
This commit is contained in:
parent
bf47b2413d
commit
1734075724
8
Rakefile
8
Rakefile
|
@ -24,12 +24,16 @@ namespace :deploy do
|
||||||
verbose(true) {
|
verbose(true) {
|
||||||
sh <<-EOF
|
sh <<-EOF
|
||||||
(
|
(
|
||||||
date;
|
echo -n "Production deployment: "; date;
|
||||||
|
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..."
|
||||||
rake generate &&
|
rake generate &&
|
||||||
|
echo "copy to webserver directory..."
|
||||||
cp -ar #{PRODUCTION[:source]}/* #{PRODUCTION[:dest]}
|
cp -ar #{PRODUCTION[:source]}/* #{PRODUCTION[:dest]}
|
||||||
) &> #{PRODUCTION[:log]}
|
echo "deployment done"
|
||||||
|
) | tee #{PRODUCTION[:log]}
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue