Skip to content

Instantly share code, notes, and snippets.

@makzan
Created September 12, 2012 15:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save makzan/3707395 to your computer and use it in GitHub Desktop.
Save makzan/3707395 to your computer and use it in GitHub Desktop.
Rakefile to preview and build wintersmith blog
desc 'Help'
task :default do
puts 'rake preview - Preview the site'
puts 'rake build - Build the stie into static files'
puts 'rake push - Push to heroku'
end
desc 'Preview the site'
task :preview do
exec 'wintersmith preview -C wintersmith -p 1234'
end
desc 'Build the site to static files'
task :build do
exec 'wintersmith build -C wintersmith -o ../'
end
desc 'Push to heroku'
task :push do
puts 'Pushing master to heroku'
exec 'git push heroku master'
end
@makzan
Copy link
Author

makzan commented Sep 12, 2012

This is the setup I use to host a wintersmith static websites on Heroku.

I put the wintersmith files into a folder named 'wintersmith' and put the output files in git root directory instead of subdirectory. Then a .slugignore file to ignore the wintersmith logic folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment