2012-08-30 14:31:55 -04:00
|
|
|
## Development tips:
|
|
|
|
|
|
|
|
### Start application in development mode
|
|
|
|
|
|
|
|
#### 1. Via foreman
|
|
|
|
|
|
|
|
bundle exec foreman -p 3000
|
|
|
|
|
|
|
|
#### 2. Via gitlab cli
|
|
|
|
|
|
|
|
./gitlab start
|
|
|
|
|
|
|
|
#### 3. Manually
|
|
|
|
|
|
|
|
bundle exec rails s
|
|
|
|
bundle exec rake environment resque:work QUEUE=* VVERBOSE=1
|
|
|
|
|
|
|
|
|
|
|
|
### Run tests:
|
|
|
|
|
|
|
|
#### 1. Packages
|
|
|
|
|
|
|
|
# ubuntu
|
|
|
|
sudo apt-get install libqt4-dev libqtwebkit-dev
|
|
|
|
sudo apt-get install xvfb
|
|
|
|
|
|
|
|
# Mac
|
|
|
|
brew install qt
|
|
|
|
brew install xvfb
|
|
|
|
|
|
|
|
#### 2. DB & seeds
|
|
|
|
|
|
|
|
bundle exec rake db:setup RAILS_ENV=test
|
|
|
|
bundle exec rake db:seed_fu RAILS_ENV=test
|
|
|
|
|
|
|
|
### 3. Run Tests
|
|
|
|
|
|
|
|
# All in one
|
2012-09-15 15:52:01 -04:00
|
|
|
bundle exec rake gitlab:test
|
2012-08-30 14:31:55 -04:00
|
|
|
|
|
|
|
# Rspec
|
|
|
|
bundle exec rake spec
|
|
|
|
|
2012-09-15 15:53:45 -04:00
|
|
|
# Spinach
|
|
|
|
bundle exec rake spinach
|