Skip to content

Commit

Permalink
Add descriptions to rake tasks
Browse files Browse the repository at this point in the history
This makes them listable with `rake -T`
  • Loading branch information
lazyatom committed Feb 15, 2018
1 parent 82ba951 commit 1efdb6d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
task :default => :build

desc 'Build the site from source'
task :build do
system("jekyll build")
end

desc 'Deploy the site to the exciting.io server'
task :deploy => :build do
system("rsync -avz --delete _site/ exciting.io:exciting.io")
Rake::Task[:fix_permissions].invoke
end

desc 'Ensure that the deployed files have the right permissions'
task :fix_permissions do
system("ssh exciting.io 'chmod og+r -R exciting.io'")
end

0 comments on commit 1efdb6d

Please sign in to comment.