Gollum is a simple wiki system built on top of Git.
Gollum wikis are simply Git repositories that adhere to a specific format. Gollum pages may be written in a variety of formats and can be edited in a number of ways depending on your needs. You can edit your wiki locally:
- With your favorite text editor or IDE (changes will be visible after committing).
- With the built-in web interface.
- With the Gollum Ruby API.
Here are steps to install gollum.
Install some dependencies:
1
|
|
Install Gollum with RubyGems:
1
|
|
Install some text format
1 2 |
|
Create a local git repo on host
1 2 3 |
|
Run the gollum
1
|
|
This will start up a web server running the Gollum frontend and you can view and edit your wiki at http://<host>
:4567.
BUILDING THE GEM FROM MASTER
1 2 3 4 5 |
|
RUN THE TESTS
1 2 |
|
RUNNING WITH UPSTART
Create a wrapper to include environment information:
1 2 3 |
|
Create a config file under /etc/init, name it gollum.cong
, as:
https://gist.github.com/lifuzu/31af0dc859bf9bfb6da5
Start/Stop the service:
1 2 |
|
You can get the log file at /var/log/upstart/gollum.log to analyze:
1
|
|
RUNNING WITH NGINX
Create a subdomain like ‘gollum.weimed.com’ point to your server IP; Create a nginx configuration file, as /etc/nginx/sites-available/stackedit.weimed.com: https://gist.github.com/lifuzu/2f2ce9095ba4a6969b2c Create a symbolic link to enable it
1
|
|
Check the configuration:
1 2 3 |
|
Reload the configuration:
1
|
|
You should see: http://gollum.weimed.com/
AUTH
TODO, please refer to [5], [6]
References:
- https://github.com/gollum/gollum
- https://gist.github.com/leon/2643936
- http://rvm.io/integration/init-d
- https://github.com/rvm/rvm-site-setup/blob/master/conf/smfbot.conf
- http://www.mfoot.com/blog/2013/05/19/setting-up-a-personal-wiki-with-aws-and-gollum/
- https://github.com/roman/rack-auth
Written with StackEdit.