Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/code4craft/labpages

Pages hooks for gitlab.
https://github.com/code4craft/labpages

Last synced: 5 days ago
JSON representation

Pages hooks for gitlab.

Awesome Lists containing this project

README

        

labpages
------------
Pages hooks for gitlab.

Tests passed on Ruby 1.9.3.

### Get Started

Download and install:

gem install sinatra #labpages uses sinatra framework.
git clone https://github.com/code4craft/labpages.git

Start server:

cd labpages
rackup -p port-you-like

Then add "http://your-host/update" to gitlab hooks. Try 'Test Hook' to see whether it works! **Only repo in branch "gh-pages" or repo with the same name of "your username" will be added to labpages**

All repo files will be stored in "/data/gitpages" by default. You can edit `config.yml` to customize your `repo_dir`.

### Visit your pages

Visit your pages in "http://your-host/your-name/your-repo"。

### Cusomize your domain

First, you should get a domain and set all resovled answer (include all subdomains) to your server. Then edit `config.yml`, set `domain` to your domain. Then you can visit pages by "http://your-name.your-domain/" (for repo with same name of user) and "http://your-name.your-domain/your-repo" (for gh-pages branch)。

### License

**labpages** is licensed under [MIT license](http://opensource.org/licenses/MIT)