Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Gollum rackup script
require 'rubygems'
require 'gollum/frontend/app'
system("which git") or raise "Looks like I can't find the git CLI in your path.\nYour path is: #{ENV['PATH']}"
gollum_path = '/Users/priit/Documents/Fraktal/Wiki'
disable :run
configure :development, :staging, :production do
set :raise_errors, true
set :show_exceptions, true
set :dump_errors, true
set :clean_trace, true
$path = gollum_path
Precious::App.set(:gollum_path, gollum_path)
Precious::App.set(:wiki_options, {})
run Precious::App

This comment has been minimized.

Copy link

@halida halida commented Feb 3, 2017

I'm using gollum_path = File.dirname(__FILE__)

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