rakefile 318 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11
desc 'Publication du site via rsync'
task :deploy do
  puts 'Mise à jour du site'
  user = 'quaternu'
  server = 'ftp.quaternum.net'
  path = 'www'
  sh "rsync -rtzh --delete _site/ #{user}@#{server}:#{path}"
  puts 'Site publié !'
end

#source: http://blog.grayghostvisuals.com/workflow/deploying-jekyll-with-rake/