log deployment
This commit is contained in:
parent
33d50fde7b
commit
2f03081d88
12
Rakefile
12
Rakefile
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
PRODUCTION = {
|
PRODUCTION = {
|
||||||
:url => "http://fnordig.de",
|
:url => "http://fnordig.de",
|
||||||
|
:log => "/home/badboy/git/fnordig.de/deploy.log"
|
||||||
:dest => "/var/www/sites/fnordig.de.test",
|
:dest => "/var/www/sites/fnordig.de.test",
|
||||||
:source => "/home/badboy/git/fnordig.de/_site"
|
:source => "/home/badboy/git/fnordig.de/_site"
|
||||||
}
|
}
|
||||||
|
@ -22,10 +23,13 @@ namespace :deploy do
|
||||||
task :production do
|
task :production do
|
||||||
verbose(true) {
|
verbose(true) {
|
||||||
sh <<-EOF
|
sh <<-EOF
|
||||||
git reset --hard HEAD &&
|
(
|
||||||
git pull origin master &&
|
date;
|
||||||
rake generate
|
git reset --hard HEAD &&
|
||||||
cp -ar #{PRODUCTION[:source]}/* #{PRODUCTION[:dest]}
|
git pull origin master &&
|
||||||
|
rake generate &&
|
||||||
|
cp -ar #{PRODUCTION[:source]}/* #{PRODUCTION[:dest]}
|
||||||
|
) &> #{PRODUCTION[:log]}
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue