Home:ALL Converter>Running Rails Server in a UNIX socket

Running Rails Server in a UNIX socket

Ask Time:2013-01-09T03:00:38         Author:tubbo

Json Formatter

Is it possible to run rails server in a UNIX socket?

I ask because rails server gives such a beautiful output, and it's really easy to distinguish SQL queries from HTTP requests, etc. But, I'm using Nginx, so I'd like to connect the application server with it using UNIX sockets, but I'm having some trouble.

The following command results in an error:

bundle exec rails server thin --socket=/var/run/rails_app.sock

It is seemingly trying to parse --socket as an option on rails server, not thin. Is there any way around this, or am I stuck using thin start and succumbing to a less beautiful log output?

Author:tubbo,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/14222149/running-rails-server-in-a-unix-socket
yy