Skip to content
Snippets Groups Projects
Commit 0ed54ee2 authored by Jacob Vosmaer's avatar Jacob Vosmaer
Browse files

Add a README

parent fe5cf028
No related branches found
No related tags found
No related merge requests found
# GitLab Development Kit
Run a GitLab development environment isolated in a directory.
## Installation
### Requirements
#### OS X 10.9
Install Ruby 2.1 and Bundler with your method of choice (RVM, ruby-build, rbenv, chruby, etc.).
```
brew install redis postgresql phantomjs
```
#### Debian
TODO
#### RedHat
TODO
### Repositories and gems
The Makefile will clone the repositories, install the Gem bundles and set up
basic configuration files.
```
# Clone the official repositories of gitlab and gitlab-shell
make
```
Alternatively, you can clone straight from your forked repositories.
```
# Clone your own forked repositories
make gitlab_repo=git@gitlab.com:example/gitlab-ce.git gitlab_shell_repo=git@gitlab.com:example/gitlab-shell.git
```
### Database initialization for development
```
cd gitlab
bundle exec rake db:create gitlab:setup
```
## Development
When doing development, you will need one shell session (terminal window)
running Postgres and Redis, and one or more other sessions to work on GitLab
itself.
### Example
First start Postgres and Redis.
```
# terminal window 1
# current directory: gitlab-development-kit
bundle exec foreman start
```
Next, start a Rails development server.
```
# terminal window 2
# current directory: gitlab-development-kit/gitlab
bundle exec foreman start
```
Now you can go to http://localhost:3000 in your browser.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment