I tried to deploy my app on EC2 (opened port: 22, 80, 443)
App:
Rails 3.2.2
Server:
nginx 1.2.1
unicorn gem (latest)
ubuntu 12.04
Deployer:
Capistrano
I tried to follow the instruction in Railscasts : http://railscasts.com/episodes/335-deploying-to-a-vps (Sorry, it's a Pro Episode)
Anything fine with normal port 80 http but i got Error 102 after trying to use SSL, here is the nginx.conf co
Im trying to catch a 502 bad gataway for nginx with unicorn. This error is thrown when unicorn is not running. Im trying to use a custom error page instead for when unicorn is not running to no avail.
What did I miss?
Can anyone shed some light on what exactly this error refers to?
I'm having trouble deploying new versions of the site.
I, INFO -- : reloading config_file=[snip]/current/config/unicorn.rb
I, INFO -- : Refreshing Gem list
E, ERROR -- : error reloading config_file=[snip]/current/config/unicorn.rb: Application has been already initialized.
I want to supervise my Rails application running on unicorn with monit.
Running following two from shell when logged in as root would fail:
"/srv/app/current/config/unicorn.sh start"
su -c "/srv/app/current/config/unicorn.sh start" app
What does work is:
su -c "/srv/app/current/config/unicorn.sh start" - app
It does not suprise me, I'm using rbenv which requires some alterations in $PATH
I'm trying to get a unicorn server to start when the server boots.
Our server is showing a lot of 500 internal error pages for random requests. We know the app is working because our code is unit tested. The server setup is Nginx with Unicorn running a single Rails apps on an Ubuntu 10.4 LTS.
I have few Unicorn servers running on Ubuntu 12.04 and I am looking to secure them against exploits which give remote shell.
My main concern is, if it makes sense to deploy ModSecurity?
Another thing is, that I have seen Unicorn typically runs from port 8080, and it's forwarded to Apache/NginX server port 80 which serves as reverse-proxy.
I was thinking that I could employ the following:
ModS
I have a server set on a VPS serving up a production Rails app via Nginx + Unicorn.
If I understand Unicorn right (and in particular from their philosophy doc) it seems like Unicorn was really designed to operate behind a reverse proxy like nginx.
My question is: can I drop nginx from my HTTP stack, considering we have an ELB at the top acting as the reverse proxy?
I didn't find any issues on initial tests, but just wondering if anyone out there has experience on this front alr