Skip to content

Instantly share code, notes, and snippets.

@priithaamer
Created October 21, 2010 09:30
Show Gist options
  • Save priithaamer/638193 to your computer and use it in GitHub Desktop.
Save priithaamer/638193 to your computer and use it in GitHub Desktop.
Gollum rackup script
#!/usr/bin/ruby
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
end
$path = gollum_path
Precious::App.set(:gollum_path, gollum_path)
Precious::App.set(:wiki_options, {})
run Precious::App
@halida
Copy link

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