Created
September 12, 2012 15:25
-
-
Save makzan/3707395 to your computer and use it in GitHub Desktop.
Rakefile to preview and build wintersmith blog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.