...
 
Commits (2)
# GitLab Development Kit cheat sheet
gdk run # Start everything
gdk run db # Start enough to run tests
gdk run tests # Start enough dependencies to run tests
gdk run dev # Minimal development dependencies (requires App Server)
gdk run dev_all # All optional development dependencies (requires App Server)
gdk run geo_db # Start Geo tracking database
gdk run gitaly # Start gitaly (git backend service)
gdk run jobs # Start GitLab background jobs
gdk run grafana # Start Grafana in a separate port
# Application Server (needs `gdk run db`):
# Application Server (needs `gdk run dev` or `gdk run dev_all):
gdk run app # Start GitLab rails and frontend servers
gdk run thin # Run only rails with thin
......
......@@ -453,7 +453,7 @@ If you still encounter some errors, see the troubleshooting FAQ below:
---
* I'm getting the following error when I try to run `gdk run` or `gdk run db`:
* I'm getting the following error when I try to run `gdk run`, `gdk run dev` or `gdk run tests`:
```
09:46:05 webpack.1 | npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "dev-server"
......@@ -471,7 +471,7 @@ If you still encounter some errors, see the troubleshooting FAQ below:
---
* I'm getting the following error when I try to run `gdk run` or `gdk run db`:
* I'm getting the following error when I try to run `gdk run`, `gdk run dev` or `gdk run tests`:
```
09:54:15 webpack.1 | > @ dev-server /Users/mike/Projects/gitlab-development-kit/gitlab
......@@ -518,7 +518,7 @@ RAILS_ENV=test bundle exec rake db:reset
## Windows 10 WSL common issues
* `gdk run db` fails with exit code X
* `gdk run dev` fails with exit code X
If you have restarted your computer recently, don't forget to start PostgreSQL server manually; init.d scripts don't work currently as of build 15063.138:
......
......@@ -106,10 +106,16 @@ Start GitLab and all required services:
gdk run
```
To start only the databases use:
To start only the databases and required services use:
```sh
gdk run db
gdk run dev
```
To start all required services to execute any test use:
```sh
gdk run tests
```
To start only the app (assuming the DBs are already running):
......
......@@ -4,11 +4,11 @@
```
cd <gdk-dir>
gdk run db
gdk run dev
```
1. Then, **open a separate terminal window** and update gdk along with all its
components:
components:
```
cd <gdk-dir>
......@@ -17,5 +17,5 @@
gdk reconfigure
```
1. Then stop the `gdk run db` process running in the first tab. It must be
restarted once `gdk reconfigure` has been run.
1. Then stop the `gdk run dev` process running in the first tab. It must be
restarted once `gdk reconfigure` has been run.
def main(argv)
case argv[0]
when 'db'
when 'dev_all', 'tests'
foreman_exec(%w[redis postgresql openldap influxdb webpack registry minio elasticsearch jaeger])
when 'dev'
foreman_exec(%w[redis postgresql webpack jaeger gitaly])
when 'geo_db'
foreman_exec(%w[postgresql-geo])
when 'app'
svcs = %w[gitlab-workhorse nginx grafana sshd gitaly storage-check gitlab-pages]
svcs = %w[gitlab-workhorse nginx grafana sshd storage-check gitlab-pages]
foreman_exec(svcs + %w[rails-web rails-background-jobs])
when 'grafana'
foreman_exec(%w[grafana])
when 'thin'
when 'puma'
exec(
{ 'RAILS_ENV' => 'development' },
*%W[bundle exec thin --socket=#{Dir.pwd}/gitlab.socket start],
*%W[bundle exec puma -b unix://#{Dir.pwd}/gitlab.socket --tag GitLab],
chdir: 'gitlab'
)
when 'gitaly'
......