Created
September 9, 2015 22:43
-
-
Save wedy/3fc570ce70613821f65c to your computer and use it in GitHub Desktop.
deploy gollum to heroku
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
require 'rubygems' | |
require 'gollum/app' | |
# to make a valid Git repo by using Heroku's ephemeral filesystem. | |
Grit::Repo.init('.').add('.').commit_all('initial commit for gollum') unless File.exists? '.git' | |
Precious::App.set(:gollum_path, '.') | |
# setting default markup | |
Precious::App.set(:default_markup, :markdown) # markdown or rdoc your call | |
# initializer, sets wiki options | |
# Precious::App.set(:wiki_options, {}) | |
# run it! | |
run Precious::App |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment