* Default Socket Location
@ 2012-01-20 15:35 Steven Garcia
2012-01-20 17:22 ` Devin Ben-Hur
0 siblings, 1 reply; 2+ messages in thread
From: Steven Garcia @ 2012-01-20 15:35 UTC (permalink / raw)
To: mongrel-unicorn
I am collaborating on a Rails app with a very minimal unicorn config
(the socket dir is not specified)
I have booted up the app and created the necessary nginx server config
for it, but it does not seem to be finding the socket file (502 error)
Was just wondering where this file would be by default. Looking at
unicorn's documentation I had expected it to be living in the /tmp
directory, but no such luck.
For good measure I also checked my app's tmp/sockets folder but no dice either
Since this app is a joint effort, specifying the socket location in
the config is not an option
Any idea?
_______________________________________________
Unicorn mailing list - mongrel-unicorn@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top post when replying
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Default Socket Location
2012-01-20 15:35 Default Socket Location Steven Garcia
@ 2012-01-20 17:22 ` Devin Ben-Hur
0 siblings, 0 replies; 2+ messages in thread
From: Devin Ben-Hur @ 2012-01-20 17:22 UTC (permalink / raw)
To: mongrel-unicorn
On 01/20/2012 07:35 AM, Steven Garcia wrote:
> I am collaborating on a Rails app with a very minimal unicorn config
> (the socket dir is not specified)
>
> I have booted up the app and created the necessary nginx server config
> for it, but it does not seem to be finding the socket file (502 error)
>
> Was just wondering where this file would be by default. Looking at
> unicorn's documentation I had expected it to be living in the /tmp
> directory, but no such luck.
>
> For good measure I also checked my app's tmp/sockets folder but no dice either
You could use `sudo lsof -p <unicorn-PID>` to see all the open files of
a running unicorn. This will show you shared objects, files, pipes,
sockets, etc.
> Since this app is a joint effort, specifying the socket location in
> the config is not an option
Unicorn defaults to listening on TCP 0.0.0.0:8080 unless you tell it
something else. It wont listen on a unix domain socket unless you
configure it to.
You can use --listen with the unicorn startup script
<http://unicorn.bogomips.org/unicorn_1.html> or the
listen(address,options) method in your unicorn.conf
<http://unicorn.bogomips.org/Unicorn/Configurator.html> to change this.
I don't see how being a collaborator on a joint effort means you can't
change config, it just means you need to discuss and agree on the common
configuration.
_______________________________________________
Unicorn mailing list - mongrel-unicorn@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top post when replying
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-01-20 17:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-20 15:35 Default Socket Location Steven Garcia
2012-01-20 17:22 ` Devin Ben-Hur
Code repositories for project(s) associated with this public inbox
https://yhbt.net/unicorn.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).