Created
September 11, 2014 08:33
-
-
Save mountcedar/1c8350d93c413c6d2486 to your computer and use it in GitHub Desktop.
Sakura VPSのubuntu12.04上にgollumを入れる ref: http://qiita.com/mountcedar/items/a59ef90a0bf3e98672bd
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
module Precious | |
class App < Sinatra::Base | |
use Rack::Auth::Basic, "This is private wiki" do |username, password| | |
[username, password] == ['yukke', 'passwd'] | |
end | |
end | |
end |
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
$ sudo apt-get -yV install ruby1.9.3 rubygems | |
$ sudo update-alternatives --install /usr/bin/ruby ruby /usr/bin/ruby1.9.3 500 | |
$ sudo update-alternatives --install /usr/bin/gem gem /usr/bin/gem1.9.3 500 | |
$ sudo gem install rubygems-update | |
$ sudo gem update | |
$ sudo apt-get install libxslt-dev libxml2-dev | |
$ sudo apt-get install -yV lib32z1-dev | |
$ sudo apt-get install libicu-dev | |
$ sudo gem install nokogiri | |
$ sudo gem install 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
$ mkdir notes | |
$ cd notes | |
$ git init | |
$ gollum —mathjax |
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
$ cd notes | |
$ gollum —mathjax |
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
$ cd notes | |
$ gollum —mathjax —config auth.rb |
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
$ cd notes | |
$ gollum —mathjax —config auth.rb —allow-uploads |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment