Created
October 21, 2010 09:30
-
-
Save priithaamer/638193 to your computer and use it in GitHub Desktop.
Gollum rackup script
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
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm using
gollum_path = File.dirname(__FILE__)