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?