summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormh <mh@scrit.ch>2009-09-27 16:44:57 +0200
committermh <mh@scrit.ch>2009-09-27 16:44:57 +0200
commit8dc2d41ce9dd7fef6cda5103dd98bbea6a592d18 (patch)
tree3f1d6524b29383bd4bd689d8bd8475c96544d202
parent866d653667b64331ab281e471312d741d8a73dee (diff)
improve Rakefile
- update to latest jekyll version - Give a hint about sshfs - rsync rather on checksum than mtime
-rw-r--r--Rakefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Rakefile b/Rakefile
index 2e2ca2c..da89ba1 100644
--- a/Rakefile
+++ b/Rakefile
@@ -1,5 +1,5 @@
-JEKYLL_BIN='/var/lib/gems/1.8/gems/mojombo-jekyll-0.5.3/bin/jekyll'
+JEKYLL_BIN='/var/lib/gems/1.8/gems/mojombo-jekyll-0.5.4/bin/jekyll'
task :install do |t|
desc "Install the necessary tools"
@@ -43,8 +43,8 @@ end
task :deploy => [ :site ] do |t|
desc "Deploys the site to the webserver"
Dir.mkdir('remote') unless File.directory?('remote')
- fail_with("Could not connect to sftp host") unless system "sshfs -o reconnect,cache_timeout=1000 scrit.ch@ftp.scrit.ch:/www remote"
- system "rsync -rltD -v --progress --delete _site/* remote/"
+ fail_with("Could not connect to sftp host. Verify that you have sshfs installed") unless system "sshfs -o reconnect,cache_timeout=1000 scrit.ch@ftp.scrit.ch:/www remote"
+ system "rsync -rcltD -v --progress --delete _site/* remote/"
system "fusermount -u remote"
end