Questions tagged [ruby-rack]

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

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

20 questions
4
votes
1 answer

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 requested, references to application.css and…
Whit Kemmey
  • 141
  • 4
4
votes
5 answers

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 documentation discusses Redirecting Traffic to a…
ma11hew28
  • 779
  • 2
  • 9
  • 17
4
votes
2 answers

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 files, since I'm noticing some delays. Edit: I've…
arbales
  • 497
  • 1
  • 4
  • 16
3
votes
1 answer

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 Passenger), and authentication to the application is…
voretaq7
  • 79,345
  • 17
  • 128
  • 213
2
votes
1 answer

setup Nginx, uwsgi for RAILS app on non-root location

I've set up and run a RAILS app (graylog2), and the below config made it work for root location: server { server_name www.mydomain.com; location / { gzip off; uwsgi_modifier1 7; include uwsgi_params; …
HVNSweeting
  • 494
  • 1
  • 9
  • 16
2
votes
1 answer

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 all 1.2 or later versions) In RAILS_ROOT, run: …
Ben Lee
  • 626
  • 2
  • 9
  • 23
1
vote
3 answers

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 useless for knowing what's going on now. I need at…
user29608
  • 11
  • 1
  • 2
1
vote
1 answer

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 upgrade from 0.7.x to 0.8.0. Since then things have…
pjmorse
  • 1,450
  • 1
  • 17
  • 34
1
vote
1 answer

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 salcedoauctions app, then how come there are so many more…
Ramon Tayag
  • 469
  • 2
  • 7
  • 17
0
votes
0 answers

Rails application with Apache on Windows Server

I need to migrate an existing Rails application (Redmine) on a Windows Server 2019 machine. It's been requested to use Apache as web server. The application runs correctly on localhost through webrick, but i'm encountering difficulties on serving…
0
votes
1 answer

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 /home/web/sites/app1 /home/web/sites/app2 /home/web/sites/app3 app1…
0
votes
1 answer

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 running quite right. My understanding is that…
0
votes
1 answer

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 puppet-dashboard]# script/server -e production NOTE:…
TuxOtaku
  • 59
  • 7
0
votes
2 answers

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 versions of these gems? Here's the log messages:…
user41422
  • 131
  • 2
  • 6
0
votes
1 answer

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 using bundle exec. my Gemfile: source…
1
2