Skip to content

Commit

Permalink
add simple Rakefile with build and deploy tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
rauchrob committed Sep 18, 2019
1 parent a33d6fc commit 75acbef
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
desc "build site locally"
task :build do
sh "bundle exec jekyll build"
end

desc 'publish site'
task :deploy do
user = 'robrauch'
server = 'www.iaa.tu-bs.de'
path = '~/www/'
sh "rsync -rtzh --delete _site/ #{user}@#{server}:#{path}"
end

0 comments on commit 75acbef

Please sign in to comment.