Skip to content

Instantly share code, notes, and snippets.

@ouyangzhiping
Created June 2, 2013 09:32
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ouyangzhiping/5693143 to your computer and use it in GitHub Desktop.
Save ouyangzhiping/5693143 to your computer and use it in GitHub Desktop.
gollum
if [ -f "$rvm_path/scripts/rvm" ] && [ -f ".ruby-version" ] && [ -f ".ruby-gemset" ]; then
source "$rvm_path/scripts/rvm"
rvm use `cat .ruby-version`@`cat .ruby-gemset`
fi
ruby-1.9.3-p392
#!/usr/bin/ruby
require 'rubygems'
require 'gollum/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/ouyang/dev/github/ouyang/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
# Create a Gemfile with the following:
source "http://rubygems.org"
#gem 'redcarpet', '1.17.2'
gem 'redcarpet'
gem "grit", '~> 2.5.0', git: 'https://github.com/gitlabhq/grit.git', ref: '42297cdcee16284d2e4eff23d41377f52fc28b9d'
gem 'gollum',git: 'https://github.com/gollum/gollum.git'
gem 'gollum-site'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment