1
Fork 0

log deployment

This commit is contained in:
Jan-Erik Rediger 2011-08-25 12:25:12 +02:00
parent 33d50fde7b
commit 2f03081d88

View file

@ -3,6 +3,7 @@
PRODUCTION = {
:url => "http://fnordig.de",
:log => "/home/badboy/git/fnordig.de/deploy.log"
:dest => "/var/www/sites/fnordig.de.test",
:source => "/home/badboy/git/fnordig.de/_site"
}
@ -22,10 +23,13 @@ namespace :deploy do
task :production do
verbose(true) {
sh <<-EOF
(
date;
git reset --hard HEAD &&
git pull origin master &&
rake generate
rake generate &&
cp -ar #{PRODUCTION[:source]}/* #{PRODUCTION[:dest]}
) &> #{PRODUCTION[:log]}
EOF
}
end