Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/code4craft/labpages
- Owner: code4craft
- Created: 2013-06-16T07:23:08.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-06-20T06:13:50.000Z (over 11 years ago)
- Last Synced: 2023-03-22T11:07:57.287Z (over 1 year ago)
- Language: Ruby
- Size: 438 KB
- Stars: 8
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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-likeThen 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)