Nginx Sock And Rails Envinroment Error
alexbarlowis at me.com
Sun Feb 14 14:01:07 EST 2010
Im running an amazon instance with nginx proxying to a unicorn sock.
For some reason, even though i specify the production environment, when being visited by nginx, the site shows errors in development form.
Interestingly, when running on a port rather than a sock, if i visit that port, the errors are rendered as normal with a 500 page, the same port, throught nginx, shows errors like you do in development.
The app is rails latest (not 3), i run it with unicorn_rails -E production -c /root/pbr/current/config/unicorn.rb -D
and unicorn.rb looks like..
Im thinking it could be a permissions problem, the rails directory is in under root, nginx runs as user nginx, but i have given chown permission the the directory?
Please CC alexbarlowis at me.com
More information about the mongrel-unicorn