Questions tagged [ruby-rack]
Rack provides a minimal interface between webservers supporting Ruby and Ruby frameworks.
20
questions
0
votes
0
answers
444
views
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,...
3
votes
1
answer
250
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 ...
4
votes
1
answer
2k
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 ...
2
votes
1
answer
734
views
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 ...
0
votes
1
answer
2k
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
/home/web/sites/...
0
votes
1
answer
199
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 ...
2
votes
1
answer
1k
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
1
answer
155
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
1
answer
2k
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
1
answer
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 ...
4
votes
5
answers
4k
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
2
answers
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
1
answer
1k
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
1
answer
689
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
1
answer
459
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
1
answer
224
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
1
answer
197
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
5
answers
3k
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:
http:/...
4
votes
2
answers
3k
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 files,...
1
vote
3
answers
3k
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 ...