Passenger-Docker multi app dev environment, how to setup debug?

Answered

Hi,
I have a multi-application development environment based on passenger-docker.

I'm currently using RubyMine 2018.1.1.

I would like to be able to debug applications, the problem is that I'm using vhosts and I don't know how to deal with them.

Is there a guide on that?

Many thanks,
Mauro

1
4 comments

Hello,

would it be possible to provide a sample app's image so that we can reproduce the problem and investigate it better.

0
Avatar
Permanently deleted user

Recreating mydock_web_1 ...
Attaching to mydock_web_1
web_1 | Fast Debugger (ruby-debug-ide 0.6.1, debase 0.2.2, file filtering is supported) listens on 0.0.0.0:1234
web_1 | Uncaught exception: Could not find concurrent-ruby-1.0.5 in any of the sources
web_1 | /usr/local/rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/spec_set.rb:88:in `block in materialize'
web_1 | /usr/local/rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/spec_set.rb:82:in `map!'
web_1 | /usr/local/rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/spec_set.rb:82:in `materialize'
web_1 | /usr/local/rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/definition.rb:170:in `specs'
web_1 | /usr/local/rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/definition.rb:237:in `specs_for'
web_1 | /usr/local/rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/definition.rb:226:in `requested_specs'
web_1 | /usr/local/rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/runtime.rb:108:in `block in definition_method'
web_1 | /usr/local/rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/runtime.rb:20:in `setup'
web_1 | /usr/local/rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler.rb:107:in `setup'
web_1 | /usr/local/rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/setup.rb:20:in `<top (required)>'
web_1 | /usr/local/rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
web_1 | /usr/local/rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
web_1 | /opt/project/config/boot.rb:3:in `<top (required)>'
web_1 | /opt/project/bin/rails:8:in `require_relative'
web_1 | /opt/project/bin/rails:8:in `<top (required)>'
mydock_web_1 exited with code 0
Aborting on container exit...

1
Avatar
Permanently deleted user

Any idea on this?

0

Just to let other people with a similar problem know, I've submitted a corresponding problem on our tracker so it's possible to follow it:

https://youtrack.jetbrains.com/issue/RUBY-21624

0

Please sign in to leave a comment.