I have a Rails application (version 4.0.3) that uses nginx as the front-end server to send requests to the actual Unicorn. During application development, I would like to use Docker for Windows (boot2docker) to run the application and ruby-debug-ide to debug the application remotely.
The initial setup works fine (application responses on the host machine) until I replaced rails serverwith
rdebug-ide
After running this in a Docker container, I successfully connect to the remote debugger when it tells the Docker bash containers that breakpoints were added based on what I set on RubyMine and reports that the Unicorn server is now running. I added gem unicorn-rails to make rails serverwork for Unicorn too.
Now the actual problem is that nginx cannot find Unicorn when it is running in the debugger. It just keeps loading the browser (and with a twist) until it returns 504 (gateway timeout).
An interesting Unicorn configuration contains
app_dir = "/app"
working_directory app_dir
pid "#{app_dir}/tmp/unicorn.pid"
worker_processes 1
listen "/tmp/unicorn.sock", :backlog => 64
I created everything as described in the JetBrains help pages . On Docker, I have all the necessary ports (1234 for the debugger, 26162 for the dispatcher, 443 for HTTPS).
Internet Qaru - -, . ?