Skip to content

Instantly share code, notes, and snippets.

@wedy
Created September 9, 2015 22:43
Show Gist options
  • Save wedy/3fc570ce70613821f65c to your computer and use it in GitHub Desktop.
Save wedy/3fc570ce70613821f65c to your computer and use it in GitHub Desktop.
deploy gollum to heroku
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