Skip to content
This repository has been archived by the owner on Oct 6, 2021. It is now read-only.

Commit

Permalink
added rake task to watch site and use POW
Browse files Browse the repository at this point in the history
  • Loading branch information
lmullen committed Nov 6, 2012
1 parent e39da21 commit 86b9883
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Rakefile
Expand Up @@ -84,6 +84,21 @@ task :preview do
puts 'Finished previewing the site locally.'
end

desc 'preview site using POW'
task :pow do
# Generates the site locally, does not launch a server but uses POW
# instead, auto regenerates
# Jekyll gets URLS from options passed to command line
# Other options are taken from _config.yml
Rake::Task["clean"].invoke
Rake::Task["assets"].invoke
puts 'Regenerating site for POW server.'
puts 'Use CTRL+C to interrupt.'
sh 'jekyll --auto --base-url / --url http://jsr.dev'
# after the server is interrupter
puts 'Finished previewing the site with POW.'
end

#helper functions

desc 'assemble Bootstrap and other Javascripts'
Expand Down

0 comments on commit 86b9883

Please sign in to comment.