Hi, I''m having a bit of aggro getting Unicorn and Nginx setup to where Uncorn.rb actually loads. Second prob is getting Nginx to properly recognize the new app listed as server in nginx.conf Does anyone know of any good articles on this setup? I''ve looked a tried a few but with no success. Puma & Apache setup worked just fine, but I''m really keep to go Nginx/Unicorn. Thanks. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/35dd3abf-5bd8-4204-b5c3-5ea7e40b203d%40googlegroups.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out.
Sounds like there''s something wrong with your nginx config and/or unicorn.conf. Could you put a github gist link for each of these configurations? Cheers, Dwight S. (@denzuko) ComputekIndustries.com -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/e32cc46e761b454752638fae1fc9b7de%40ruby-forum.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out.
Dwight Spencer wrote in post #1118529:> Sounds like there''s something wrong with your nginx config and/or > unicorn.conf. Could you put a github gist link for each of these > configurations? > > Cheers, > Dwight S. (@denzuko) > ComputekIndustries.comHi Dwight, Thanks for your help, I''ve made a number of changes to the nginx conf files so may be way off target by now. Getting Nginx, Rails, Postgres pretty straight foward, the unicorn thing is a bit challenging despite following a few blog article how tos. Here''s my github gist on 4 files: https://gist.github.com/anonymous/bb7eee660afd1fa70b61 1. nginx.conf 2. modelesprit.com - file for the app 3. unicorn_connector.conf - file included in 2 for unicorn 4. railo_connector.conf - file included in 2 for Railo coldfusion server as I have some legacy coldfusion apps to support Thanks, Pardeep. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/bb60fce87c594ca572242f14d265c45c%40ruby-forum.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out.
For some reason the first gist didn''t include the nginx.conf file. Here it is: https://gist.github.com/anonymous/c32b0d0ee91434d80f5c -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/5c67c0549249d050f81baf8c8132be20%40ruby-forum.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out.
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 -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/4aa1d45f4ac3b23aba5745e9532b8db7%40ruby-forum.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out.
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.comHi 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. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/fcd82b380d8b9ca2f3866319da67a1f7%40ruby-forum.com. For more options, visit https://groups.google.com/groups/opt_out.