Pages hooks for gitlab.
Tests passed on Ruby 1.9.3.
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 in "http://your-host/your-name/your-repo"。
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)。
labpages is licensed under MIT license