Skip to content
Snippets Groups Projects
Commit db1a3d1e authored by Jacob Vosmaer (GitLab)'s avatar Jacob Vosmaer (GitLab)
Browse files

Create a "run thin" command (avoid foreman)

parent 7bfa01f4
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -8,7 +8,6 @@ postgresql: exec support/postgresql-signal-wrapper postgres -D /home/git/postgre
#openldap: exec support/exec-cd gitlab-openldap libexec/slapd -F slapd.d -d2 -h "ldap://127.0.0.1:3890"
gitlab-workhorse: exec /usr/bin/env PATH=/home/git/gitlab-workhorse:$PATH gitlab-workhorse -authSocket /home/git/gitlab.socket -listenAddr $host:$port -documentRoot /home/git/gitlab/public -developmentMode
rails-web: exec /usr/bin/env RAILS_ENV=development support/exec-cd gitlab bin/web start_foreground
#rails-web: exec /usr/bin/env RAILS_ENV=development support/exec-cd gitlab bundle exec thin --socket=/home/git/gitlab.socket start
rails-background-jobs: exec /usr/bin/env SIDEKIQ_LOG_ARGUMENTS=1 RAILS_ENV=development support/exec-cd gitlab bin/background_jobs start_foreground
#influxdb: exec influxdb/bin/influxd -config influxdb/influxdb.conf
#grafana: exec support/wait-postgresql-ready support/exec-cd grafana bin/grafana-server -config grafana.ini
Loading
Loading
Loading
Loading
@@ -8,12 +8,10 @@ terminal window where you start your test command (`rake`, `rspec`
etc.).
 
If you want to get a debugging prompt while browsing on your local
development server (localhost:3000) you need to make a change to the
Procfile in your GDK root directory because Unicorn is not compatible
with Pry.
development server (localhost:3000) you need to comment out the
`rails-web:` line in the Procfile in your GDK root directory because
Unicorn is not compatible with Pry.
 
There are two `rails-web` lines in the Procfile, one containing
`bin/web` and one containing `thin`. Comment out the line containing
`bin/web` and uncomment the line containing `thin`. Now when you start
GDK with `./run` or `./run app` the Rails web application runs in Thin
instead of Unicorn.
Then launch GDK as usual (e.g. with `./run`) and in a separate
terminal run: `./run thin`. Your Pry prompts will appear in the window
that runs Thin.
Loading
Loading
@@ -62,12 +62,16 @@ grafana() {
foreman_start -c all=0,grafana=1
}
 
thin() {
exec /usr/bin/env RAILS_ENV=development support/exec-cd gitlab bundle exec thin --socket=$(pwd)/gitlab.socket start
}
all() {
print_port
foreman_start
}
 
case x$1 in
case "x$1" in
xdb)
db
;;
Loading
Loading
@@ -77,6 +81,9 @@ xapp)
xgrafana)
grafana
;;
xthin)
thin
;;
x*)
all
;;
Loading
Loading
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