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

Merge branch 'howto-pry' into 'master'

Document how to use Pry

Closes https://gitlab.com/gitlab-org/gitlab-development-kit/issues/140

See merge request !169
parents 543b8a57 c65d0044
No related branches found
No related tags found
1 merge request!169Document how to use Pry
Loading
Loading
@@ -4,6 +4,7 @@ postgresql: support/postgresql-signal-wrapper postgres -D /home/git/postgresql/d
#openldap: cd gitlab-openldap && libexec/slapd -F slapd.d -d2 -h "ldap://127.0.0.1:3890"
gitlab-workhorse: PATH=/home/git/gitlab-workhorse:$PATH gitlab-workhorse -authSocket /home/git/gitlab.socket -listenAddr $host:$port -documentRoot /home/git/gitlab/public -developmentMode
rails-web: RAILS_ENV=development support/exec-cd gitlab bin/web start_foreground
#rails-web: RAILS_ENV=development support/exec-cd gitlab bundle exec thin --socket=/home/git/gitlab.socket start
rails-background-jobs: SIDEKIQ_LOG_ARGUMENTS=1 RAILS_ENV=development support/exec-cd gitlab bin/background_jobs start_foreground
#influxdb: influxdb/bin/influxd -config influxdb/influxdb.conf
#grafana: support/wait-postgresql-ready support/exec-cd grafana bin/grafana-server -config grafana.ini
Loading
Loading
# Debugging with Pry
[Pry](http://pryrepl.org/) allows you to set breakpoints in Ruby code
for interactive debugging. Just drop in the magic word `binding.pry`.
When running tests Pry's interactive debugging prompt appears in the
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.
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.
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