Tagged Questions

Rack provides a minimal interface between webservers supporting Ruby and Ruby frameworks.

learn more… | top users | synonyms

3
votes
1answer
58 views

Sharing HTTP session data in Passenger/Rack - What's the Best Current Practice?

My company has a customer-facing web application distributed across several servers for the purpose of load balancing and fault tolerance. The application is written in Ruby (Rack, running under ...
1
vote
0answers
343 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 ...
0
votes
1answer
524 views

Host multiple Rack apps on one server with multiple ports (using Apache and Passenger)

I've search online and been reading documentation for Apache, Passenger, Rack, etc, but have yet to find a solution to my problem. I have several Rack (ruby)-based apps, located in ...
0
votes
1answer
119 views

Passenger not running continuously

I am wondering if somebody could inform me of the correct behaviour for a Rails app running through Rack/Passenger, as I am seeing some unusual behaviour on a production system which has never been ...
0
votes
1answer
423 views

Why is there a separate “unicorn_rails” for Rails apps?

According to the Unicorn docs, there are different binaries for Rails apps and other Rack apps: non-Rails Rack applications In APP_ROOT, run: unicorn for Rails applications (should work for ...
-1
votes
1answer
123 views

Using Arch Linux computer as a server for Rack Apps

What would be the best way to go about using an Arch Linux computer as a Rack (as in Ruby Rack, not an actual rack server) server? Here's what I want to be able to do: Automatically deploy on a git ...
1
vote
1answer
988 views

Rack processes taking over CPU under Passenger

I have a Spree site running the following stack: Nginx 1.0.8 Passenger 3.0.9 Ruby 1.9.2-p290 Rack 1.3.6 Rails 3.1.4 Spree 0.70.5 I recently upgraded from Spree 0.70.3, which also brought a Deface ...
0
votes
1answer
1k views

puppet dashboard fails to start

So here's the situation. I'm running Puppet on CentOS 5.7 64-bit, and on the puppet master I also have puppet-dashboard, however when I try to start it, I see the following: [root@puptest-master ...
2
votes
5answers
2k views

Redirect to www subdomain via DNS

Is it possible to set a DNS record to redirect all example.com/* traffic to www.example.com/*? I'm running a Sinatra app on Heroku's Cedar stack. I set up Heroku's Custom Domains addon, and the ...
0
votes
2answers
2k views

Unicorn 3.3.1 and Rack 1.1.0 issues?

I'm upgrading from the Ruby Enterprise Edition 1.8.6 to the latest 1.8.7 version with Unicorn to facilitate an upgrade to Rails 2.3.10, and am running into some issues. Should I uninstall the older ...
1
vote
1answer
626 views

Apache/Passenger: not following PassengerMaxPoolSize/PassengerMaxInstancesPerApp?

If I'm correct when I think that a line of 30193 ramon 16 0 170M 119M 3628 S 0.0 11.6 0:08.47 Rack: /var/www/salcedoauctions/current in htop means that there's one spawn of the ...
0
votes
1answer
627 views

Rack Error with DreamHost, Passenger, and Rails 3.0.0.rc

Background: I have viewed this question as well as this one - sadly, to no avail. Error Message (Passenger): You have already activated rack 1.1.0, but your Gemfile requires rack 1.2.1. Consider ...
0
votes
1answer
417 views

nginx and many racks

I want to deploy a ror3 application using nginx/passenger/rack on webfaction. Out of some reason uncached (or out of another reason, I am just guessing) requests to that site spawn multiple rack ...
0
votes
1answer
182 views

http request to a web server timeout on firts request

I'm working on an app (iPhone) that makes several Http Request to a RESTFULL web server. When I lauch the app, the request is performed and very often it timeouts. If I perform the request once again ...
0
votes
1answer
157 views

Passenger, Apache and avoiding page caching

I'm hosting a rack application with passenger and apache. The application is setup to cache the content of each request to the public directory after each request. This allows apache to serve the ...
0
votes
5answers
2k views

Multiple rack apps on nginx + passenger, one as root, the other not…config

So I've got two apps I want to run on a server. One app I would like to be the "default" app--that is, all URLs should be sent this app by default, except for a certain path, lets call it /foo: ...
4
votes
2answers
2k views

How to setup Nginx with Varnish

I'd like to see how to configure Nginx and Varnish. I'm running several PHP sites and Rack-Sinatra sites as virtual hosts across two IP's. I'd like to prevent Nginx from having to serve static ...
1
vote
3answers
2k views

Getting live traffic/visitor analytics when using a reverse proxy

I'm in process of implementing Varnish as a reverse proxy for a Ruby on Rails app and I'm using Google Analytics (JS/client side script to record visitor data) but it's several hours delayed so its ...