unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
* Unicorn Nginx Issue
@ 2009-10-13 16:57 Matt Mongeau
  2009-10-13 17:20 ` Brian Ketelsen
  0 siblings, 1 reply; 8+ messages in thread
From: Matt Mongeau @ 2009-10-13 16:57 UTC (permalink / raw)
  To: mongrel-unicorn

I've setup nginx with this
server {
  listen 80;
  server_name unicorn.local;
  location / {
    proxy_pass http://unicorn;
  }
}
upstream unicorn {
  server unix:/Users/mattmongeau/projects/test/unicorn/tmp/sockets/unicorn.sock;
}

When I run unicorn_rails -c config/unicorn.rb -E development I can
access the application just fine on unicorn.local

When I run unicorn_rails -c config/unicorn.rb -E development -D I get this issue

2009/10/13 12:34:22 [error] 1007#0: *62 connect() to
unix:/Users/user/projects/test/unicorn/tmp/sockets/unicorn.sock failed
(61: Connection refused) while connecting to upstream, client:
127.0.0.1, server: unicorn.local, request: "GET / HTTP/1.1", upstream:
"http://unix:/Users/user/projects/test/unicorn/tmp/sockets/unicorn.sock:/",
host: "unicorn.local"

ps -aux shows that the workers are created
and ls -la show srwxrwxrwx  1 mattmongeau  staff    0 Oct 13 12:51 unicorn.sock=

Any suggestions on what I am doing wrong. I running OSX 10.6.1, with
nginx installed from passenger (nginx version: nginx/0.6.37)

Thanks, Matt

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-10-13 20:11 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-13 16:57 Unicorn Nginx Issue Matt Mongeau
2009-10-13 17:20 ` Brian Ketelsen
2009-10-13 17:27   ` Matt Mongeau
2009-10-13 17:34     ` Matt Mongeau
2009-10-13 18:53       ` Eric Wong
2009-10-13 19:03         ` Matt Mongeau
2009-10-13 19:43           ` Eric Wong
2009-10-13 20:11             ` Matt Mongeau

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).