Questions tagged [ruby-on-rails]

Ruby on Rails is an open-source, MVC web development framework written in Ruby, optimized for programmer happiness and maintaining sustainable productivity. Many things are defined by convention, freeing you from having to re-invent things to stay productive.

Ruby on Rails is an open-source web framework that's optimized for programmer happiness and sustainable productivity. It lets you write beautiful code by favoring convention over configuration.

911 questions
3
votes
1 answer

gitlab authentication using HTTP_REMOTE_USER environment variable

we have discovered gitlab, and I would like to integrate it in our global authentication process, which relies on apache HTTP_REMOTE_USER environment variable. I have seen very little documentation on it, so I am looking desperately for any help on…
philippe
  • 2,303
  • 4
  • 32
  • 53
3
votes
1 answer

Mongodb production server too slow compared to staging

We have two sets of db and app servers running on Rackspace VPS. Production and Staging. The app is on Rails and db is MongoDB. While staging(with as many documents as prod, 55k) works just fine, production server is terribly slow. By a factor of 20…
Bornfree
  • 161
  • 4
3
votes
1 answer

Mongrel over mod_proxy unacceptably slow

Here is the situation C:\>ab -n 100 -c 5 http://webserver/track/ This is ApacheBench, Version 2.3 <$Revision: 655654 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation,…
Monban
  • 155
  • 1
  • 10
3
votes
1 answer

Force URL root to be HTTPS instead of HTTP for RoR application

I am attempting to run Redmine (RoR) through an Apache reverse proxy. Mongrel serves plain-text pages which Apache protects with SSL and serves to my users. The problem is that various links and redirects within Redmine send users to http:// instead…
Michael Haren
  • 1,301
  • 7
  • 18
  • 31
3
votes
1 answer

How to debug why my server has 3s delay on each request nginx/unicorn?

I am trying to debug why my server has 3 seconds delay on each request. These are my nginx and unicorn config files: https://gist.github.com/regedarek/de7f2e5cd1918b6224ac My server info: Welcome to Ubuntu 12.04.1 LTS (GNU/Linux 3.2.0-37-generic…
tomekfranek
  • 143
  • 6
3
votes
1 answer

Sporatic 502 errors with Ruby on Rails site running on Nginx

My Ruby on Rails site is throwing sporadic 502 errors. It is running on Nginx, installed with Passenger, and is hosted on a server running Ubuntu 10.04. It seems that the errors are becoming more and more sparse, but they're still causing a…
3
votes
2 answers

nginx conditional Accept header

Some mobile devices send the following incorrect requests to our servers : GET / HTTP/1.0 Accept: User-Agent : xxx The empty Accept header causes our Ruby on Rails server to throw back a 500 error. In Apache, the following directive allows us to…
manu_v
  • 133
  • 1
  • 5
3
votes
1 answer

Rails/Mongo across multiple different geo-regions

I have a system that by necessity requires physical presence in three or more different locations and I need advice on structuring in such a way that my database stays replicated in a timely manner without horrible latency. I've seen mysql access…
wmarbut
  • 301
  • 2
  • 4
  • 12
3
votes
3 answers

What webserver should I use to host RoR apps in Windows?

I need to setup a dedicated server to host Redmine (an open source Ruby-on-Rails bug tracker). What is the best web server to accomplish this? Apache Mongrel IIS something else? It must run on Windows (flavor is optional but 2008-x64 preferred).
Michael Haren
  • 1,301
  • 7
  • 18
  • 31
3
votes
1 answer

Application specific environment on the same server in Nginx/Passenger

I have two Rails applications (say app1 and app2) deployed using Nginx/Passenger. The server definition in nginx.conf looks like this: server { rails_env demo; client_max_body_size 50M; listen 80; server_name …
dexter
  • 81
  • 4
3
votes
0 answers

Phusion Passenger setting PassengerPreStart does not activate using service httpd start

I'm running Phusion Passenger on RHEL, hosting a Rails application. I can successfully start up a passenger instance on Apache startup using the Passenger setting PassengerPreStart, but only if I start up Apache using apachectl start. If I start up…
3
votes
0 answers

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 -- : Refreshing Gem list E, ERROR -- : error…
Andy Copley
  • 131
  • 5
3
votes
1 answer

Nginx + Unicorn

I am working on a migration from nginx + passenger to nginx + unicorn and I have reached a point where I am a bit stuck. When I attempt to view my test server, I get nothing but a 404 page. I am sure that I have something off in my vhost config but…
rottmanj
  • 213
  • 1
  • 3
  • 6
3
votes
1 answer

Rails Passenger Nginx cannot load such file -- bundler

I have set up Rails, Passenger, nginx, and PostgreSQL on Ubuntu Server 12.04LTS. Upon trying to access the application/website, however, I am greeted with an error page saying that the application could not be started because a source file is…
Stuart
  • 151
  • 1
  • 4
3
votes
2 answers

Static file serving only works if root is a subfolder under public

I am trying to serve static cache files using nginx. There are index.html files under the rails_root/public/cache directory. I tried the following configuration first, which doesn't work: root <%= current_path %>/public; try_files…
lulalala
  • 1,677
  • 2
  • 13
  • 12