Created
June 2, 2013 09:32
-
-
Save ouyangzhiping/5693143 to your computer and use it in GitHub Desktop.
gollum
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
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 |
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
wiki |
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
ruby-1.9.3-p392 |
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/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 |
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
# 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