Nginx & Unicorn setup

Hi Pardeep,

I'm glad to help. I did get to review both of the gists you posted up and your nginx configuration does look proper. This leads me to suspect there is a config issue with unicorn. Do you have a gist of the unicorn config I can look at?

Also, are you making sure to have unicorn listen on a unix socket located at /tmp/unicorn.modelesprit.sock instead of a tcp port?

Cheers, Dwight S. (@denzuko) ComputekIndustries.com

Dwight Spencer wrote in post #1118596:

Hi Pardeep,

I'm glad to help. I did get to review both of the gists you posted up and your nginx configuration does look proper. This leads me to suspect there is a config issue with unicorn. Do you have a gist of the unicorn config I can look at?

Also, are you making sure to have unicorn listen on a unix socket located at /tmp/unicorn.modelesprit.sock instead of a tcp port?

Cheers, Dwight S. (@denzuko) ComputekIndustries.com

Hi Dwight,

Sorry for the delay, my unicorn.rb file in the rails app config folder is as follows:

root = "/srv/www/modelesprit.com/" working_directory root pid "#{root}/tmp/pids/unicorn.pid" stderr_path "#{root}/log/unicorn.log" stdout_path "#{root}/log/unicorn.log"

listen "/tmp/unicorn.modelesprit.sock" worker_processes 2 timeout 30

Best, Pardeep.