Exel Dev
2013-Aug-10 08:41 UTC
Problem getting Nginx & Unicorn to work for Railo 4 on Ubuntu 12.04
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. My stack is Ubuntu 12.04 / Nginx / Railo 4 / 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/55fcd668-0562-47a0-b46b-79d0013b8957%40googlegroups.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out.
Ivan Histand
2013-Aug-11 14:03 UTC
Re: Problem getting Nginx & Unicorn to work for Railo 4 on Ubuntu 12.04
I have a project I''ve been working on that may help. It includes some template config files for both unicorn and nginx, as well as bash scripts to set it up with or without ssl. The assumption is that you are setting it up on Amazon EC2, but it should work with minor changes for any linux platform. There''s not much documentation yet, I''m working on that, but the bash scripts have a fair amount of comments which should explain most things. check out the nginx/setup_nginx.sh script, and the unicorn/unicorn.rb sample template. https://github.com/badgeretl/ec2-ror-setup --Ivan -- 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/737564a5-e2a8-466b-a0e0-fb3a515bc8ac%40googlegroups.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out.
Ivan Histand
2013-Aug-11 17:58 UTC
Re: Problem getting Nginx & Unicorn to work for Railo 4 on Ubuntu 12.04
I have a project I''ve been working on to automate the setup of a rails server on Amazon EC2. There are bash scripts to set up Nginx with/without SSL and sample config files for unicorn. Everything is tested with Rails 4. https://github.com/badgeretl/ec2-ror-setup Take a look at the /projects, /unicorn, and /nginx folders for related stuff. I am working on improving the documentation, but there are comments in the setup_*.sh scripts that explain a lot. I''ve not tested it on Ubuntu (only Amazon Linux instances, which are redhat based) but you should be able at least get some good info there. --Ivan -- 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/ebcdb867-c381-4dd3-b1ed-5da4461aeba5%40googlegroups.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out.