Unicorn is an HTTP server for Rack applications designed to only serve fast clients on low-latency, high-bandwidth connections and take advantage of features in Unix/Unix-like kernels. http://unicorn.bogomips.org/

learn more… | top users | synonyms

1
vote
3answers
2k views

Rails + Nginx + Unicorn multiple apps

I get the server where is currently installed two apps and i need to add another one, here is my configs. nginx.conf user www-data www-data; worker_processes 4; pid /var/run/nginx.pid; events { ...
-1
votes
2answers
816 views

How to restart RoR services after server has been rebooted

Update I have been searching around to see what services would possibly need to be restarted in my project after reboot. One of them was thinking sphinx, which I finally got to the point where it ...
3
votes
1answer
266 views

Nginx + unicorn + spdy + performance testing

I have a ruby on rails website that is hosted on unicorn webserver behind a nginx reverse proxy. I want to evaluate if using spdy will enhance my performance under this setup. Specifically, I need ...
3
votes
1answer
589 views

Unicorn behind ELB, no nginx

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 ...
3
votes
1answer
711 views

Writing an upstart config file for Unicorn

I've had a good hunt and can't find a good example of an upstart script for Unicorn. From what I've read however I think that upstart and unicorn might step on each others toes if I just try to set ...
1
vote
1answer
211 views

Unicorn: Sub-Url Generated Links Broken

I am currently trying to stand up an instance of redmine, however currently The generated links in my redmine instance are all broken. I am attempting to serve redmine from a sub-url i.e ...
1
vote
1answer
524 views

Linode Debian + rvm + nginx + Unicorn kills master at boot or doesn't start unicorn

I'm a new Linode/Linux user running Debian 6. I'm trying to get my Unicorn server to start at boot, but for some reason it is not, and I'm not able to track down any error message. Nginx is starting ...
1
vote
1answer
751 views

Apache proxying to Unicorn server times out, how to avoid?

I have a Teambox installation running on Unicorn, and the latter sometimes times out after 30 seconds. The idea of this configuration would be for Apache to wait until the Unicorn master server sends ...
0
votes
1answer
87 views

Restart individual rails apps in nginx+unicorn

I have 15-20 independent rails applications on the same ec2 instance. The rails applications are deployed using apache + passenger with Railsbaseuri. RailsBaseURI /games <Directory ...
0
votes
1answer
188 views

Unicorn rails server with Apache

I'm looking for the best setup to use in conjunction with Unicorn. Are there clear advantages or disadvantages to using Unicorn rails server with Apache? Should I consider using NGINX? I'm concerned ...
0
votes
1answer
147 views

nginx: simplify config for force ssl on specific path for rails app

im using the config below. it works, but the problem for me is the repeating of some lines. the proxy_* directives need to be in location /admin also, because only one location will be executed by ...
0
votes
1answer
464 views

Nginx + Unicorn Rails Application gets 404 when requests number are high

I have a Rails application deployed using Nginx + Unicorn. Last night, when the traffic peaked, Nginx was getting lots of 404 errors. When I dig into logs, those 404 requests on the nginx side did not ...
0
votes
1answer
160 views

Nginx + Upstream + scaling down ec2 instances

In the process of deploying multiple EC2 instances running a Rails app over Unicorn. I currently have a "front end" server running nginx with multiple "Unicorn" upstream providers. At night, I'd like ...
0
votes
1answer
255 views

Nginx unicorn: firefox is redirected to proxy_pass

I have the following setup to process certain domains with rails via unicorn: http { # ... upstream unicorn_server { # This is the socket we configured in app's config unicorn.rb ...
0
votes
1answer
285 views

Unicorn Worker Pool going idle and slowing down a lot after a period of time

I'm running Teambox community edition on an Ubuntu Server machine, with 600Mhz and 358MB of RAM. I know it's not much and that's probably the cause of all the trouble I'm having, but maybe someone ...
0
votes
1answer
671 views

Unicorn 3 throwing tons of errors (Rails 3.0.3, Unicorn 3.0)

I just tried to upgrade to Unicorn 3.0. I changed my Gemfile and did a bundle install. When restarting my Unicorn I got tons of errors beginning with: Unhandled listen loop exception ...
3
votes
0answers
164 views

Rails 4 Unicorn+Nginx on Ubuntu 13.04 VPS keeps crashing

I bought a years subscription at bluevm.com (found some coupon code, it was only about $15 for a whole year) to launch my first Rails Production server. I'm running Nginx with Unicorn and MySQL on ...
2
votes
0answers
632 views

Rails, Capistrano, Nginx, Unicorn - Application has been already initialized (RuntimeError)

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 ...
1
vote
0answers
286 views

Rails application deployment, nginx, unicorn, capistrano socket error

I am deploying a rails application to a digital ocean VPS. I have followed https://coderwall.com/p/yz8cha . All things done well, but now the browser shows only a blank page. Nginx log contains: ...
1
vote
0answers
35 views

Redhat quitting process never works always have to kill it

I am working on a RedHat server creating a unicorn process. I have two sets of these processes being created. I am able to QUIT one of the process fine and do so over and over again create it and QUIT ...
1
vote
0answers
364 views

Rails when served by unicorn is generating the wrong fingerprint for precompiled assets

I have a production server with nginx -> unicorn -> rails. I precompile assets, which puts assets in public/assets with a fingerprint (hash) appended to the filename. However, when a web page is ...
1
vote
0answers
170 views

Nginx Returning 504 Error

I'm getting a 504 error from Nginx on my Ubuntu server where I'm running Rails using Unicorn. When I look in the Nginx error.log.1, I see: 2014/01/21 18:06:02 [error] 698#0: *2 connect() failed ...
1
vote
0answers
352 views

nginx configuration for rails subdir deployment

I'm having quite a bit of trouble configuring nginx to serve my Rails app's static files; I mean all the files in the app's public/ folder, not just the files in Rails' asset pipeline. It seems I'm ...
1
vote
0answers
96 views

Deploying sinatra app on rails app sub uri using( unicorn and nginx)

I have rails app running on unicorn+nginx. below is the nginx.conf and unicorn.rb configuration. nginx.conf upstream unicorn { server unix:/tmp/unicorn.todo.sock fail_timeout=0; } server{ ...
1
vote
0answers
98 views

Best way to profile Unicorn workers?

I'm trying to get a better picture of what my Unicorn workers are doing. Are they blocked on calls to other services for a significant portion of their cycles? Are they free most of the time? The ...
1
vote
0answers
1k views

How to load environment variables with Unicorn

I can't seem to get my server to load up the environment variables. In my ideal setup I would like 1 user (deployer) to serve multiple applications on a single server. Ubuntu 12.04, Nginx, Unicorn. ...
1
vote
0answers
474 views

How are these AB Benchmarks for a ruby/unicorn/nginx/ app running on ec2?

I am preparing to go live with an app, and was wondering if someone can give me some insight on my benchmarks. How do they compare, what system level tweaks can I make to improve them etc. My setup ...
0
votes
0answers
74 views

Serving static files with NGINX on Unicorn served app

I've just set up a Sinatra app running on Unicorn and served through a socket by NGINX. I'm trying to get NGINX to serve my static assets with this in my nginx config: * EDIT * (added full server ...
0
votes
0answers
39 views

unicorn capistrano not starting

Hi I am deploying my rails application in VPS and I have followed https://coderwall.com/p/yz8cha this blog and the problem is nginx show only 500 error page , I doubt of that my unicorn is not starts ...
0
votes
0answers
244 views

Why do I need to precompile Rails assets on app servers?

I'm deploying a simple Rails app to this small ubuntu precise64 server setup : * 1 server running nginx * 2 servers running unicorn * 1 server running postgresql My servers are provisionned with ...