unicorn

Are there any easy instructions for migrating from Phusion Passenger to Unicorn?

I am running into deployment issues with Phusion Passenger on a fairly large app: stalled processes on high loads, idle processes, slow firing up of an instance, etc. So I was looking into Unicorn, which I like very much from an architecture/performance perspective. Are there any easy to follow migration guides to go from Nginx Phusion...

NGINX, Unicorn, Mediatemple dv server

Anyone every try to set up nginx & unicorn for their rails apps on a mediatemple dv server? Did you document it? ...

The init script to several Unicorn.rb instance

I use now thin to serve my rack application on my webserver. I have a lot of web application so I have a init script who check all file in my /etc/thin and start all of then with configuration inside. I want migrate to unicorn so I want same behaviour, but when I check the example in unicorn, I found only init script to start one unicor...

Determining Odd Bottleneck with Rails/Unicorn/CentOS

I have this odd bottleneck that I can't seem to put my finger on. My rails app randomly stalls which causes unicorn workers to restart. I can't seem to recreate it locally. My log shows odd things like this: Completed in 8892ms (View: 14, DB: 12) Ideas? ...

kill -9 and production application

Which problem can cause kill -9 in production application (in linux to be exact)? I have application which do some periodical work, stopping these takes long time, and I don't care if some jobs will be aborted - work can be finished by new processes. So can I use kill -9 just to stop it immediately or this can cause serious OS problem...

How to monitor double click (text selection) on OSX in browser or text editor

Novice programmer asking first question on stack-overflow. I am writing an app for mac osx that monitors for text selection ie when a user does a double click on some text. The text can come from a browser or text editor, etc. The goal is to capture the text and do some processing on the text. I been reading about the mouse and curso...

Reset cache in Thin instances launched by Unicorn

I have a Ruby webapp that caches some frequently used information in a lightweight layer, but there are times at which I want to reset the cache without restarting the entire process. Before I started using Unicorn, I had a known list of ports that I could send a special HTTP request to reset the cache on each instance. However, under U...

Rails 404 error for Stylesheet or JavaScript files

Rails can't load (404 error) CSS & JS files on production but has no problem loading them in development. I'm using Capistrano for deployment and running Rails 3. My path on development is /www/myapp but my path on production is /www/myapp/current. The application itself seems to work fine, so the issue seems to be isolated to CSS/JS f...

How to convert WAR application into console application (Making Unicorn has console application)

Hi all, Unicorn just provide a URI and push the button. It will call a series of validation services and report the results.I have already downloaded and installed Unicorn. To Download the source code it is only available for download from the Mercurial repository. To download it, use the command "hg clone https://dvcs.w3.org/hg/unic...

unicorn_rails ignores unicorn.rb directives when started from launchctl?

I'm having trouble getting unicorn to launch correctly using launchctl. I have a Rails application on my macbook pro. It runs fine under Passenger, but I'd like to switch over to unicorn to test it out. I have the following unicorn.plist <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" ...

Using God to monitor Unicorn - Start exited with non-zero code = 1

Hello, I am working on a God script to monitor my Unicorns. I started with GitHub's examples script and have been modifying it to match my server configuration. Once God is running, commands such as god stop unicorn and god restart unicorn work just fine. However, god start unicorn results in WARN: unicorn start command exited with ...

nanoc site tested with unicorn

Hello, I have a nanoc site (so, all static pages) that I'd like to test with unicorn. The idea behind this is to host this site on heroku then. The structure is then a rack application. I have added a config.ru file like: require 'rubygems' require 'rack' require 'rack-rewrite' require 'rack/contrib' use Rack::Rewrite do rewrite '/','...