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.

learn more… | top users | synonyms (1)

2
votes
3answers
5k views

How much memory per Apache connection?

Our client has a Ruby on Rails app that is mostly client-based (i.e, very little processing in controllers and views), with Apache and Passenger in the server stack. We see each connection takes ...
2
votes
1answer
324 views

How do I monitor bandwidth used by rails apps?

I run a server that hosts several small rails apps, and I want to track how much bandwidth each is using. They are all running on Apache 2.2 and Passenger 3. I used mod_cband for static sites, but ...
2
votes
1answer
830 views

How many instances of rails can I run on one server?

I'm a developer trying to determine the best way to approach a rails app. I need to provide some options for deployment and am trying to minimize both development costs and long term hosting costs. ...
2
votes
1answer
497 views

Memcache on ubuntu server lucid and ruby 1.9.1

I'm trying to set up a memcache server on the above setup. I'm getting the following error: /var/lib/gems/1.9.1/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:443:in ...
2
votes
1answer
612 views

Passenger not working with SSL on Apache 2

I have a Rails app running on Passenger; It works as expected over unencrypted connections. I also have a working Apache SSL setup; I can access any static file available via http with https. When I ...
2
votes
2answers
2k views

Gzip vs. Reverse Proxy Cache

I have a mostly static site running on Ruby on Rails that is using the Varnish reverse proxy cache to save on hits to the Rails backend. The problem is that a user can login to the site and when they ...
2
votes
1answer
2k views

Nginx 404 Deploying Ruby on Rails Application with Phusion Passenger

There are a lot of moving parts here that I have varying levels of familiarity with, so I'm hoping another set of eyes will help me discover why I'm getting a 404 after deploying my Rails app on Nginx ...
2
votes
1answer
29 views

Posting url of rails application on FB without https replace meta tag description with “welcome to nginx”

I have a rails application deployed on an amazon ec2 ubuntu instance, configured with nginx which is working fine. The problem is when I try and post the url of the site on facebook without https ...
2
votes
1answer
65 views

Strange request every 2 seconds from local IP (127.6.205.1), which overflows logs (OpenShift)

I get a strange request every 2 seconds from 127.6.205.1. My production.log (Ruby on Rails) file looks like so: > ... I, [2015-01-16T15:05:23.491062 #79682] INFO -- : Started GET "/" for ...
2
votes
1answer
916 views

Rails app 502 with AWS Elastic Beanstalk running Puma & Nginx

I've been able to successfully get my application running on Beanstalk with Passenger, however I've had no luck with Puma. Whenever I deploy with to a Puma stack I get 502 Errors, my log files ...
2
votes
1answer
214 views

What happens when Phusion PassengerMaxPoolSize is reached?

The subject of my post pretty much sums up my question: What happens when PassengerMaxPoolSize is reached? For Example: PassengerMaxPoolSize is configured to 40 based off our system specs What ...
2
votes
1answer
805 views

Unicorn error while hosting a Rails app with NGINX

All of a sudden my app stopped working and these are the last lines I am getting from unicorn.log unicorn worker[0] -D -c /home/deployer/apps/myapp/current/config/unicorn.rb -E production: ...
2
votes
1answer
305 views

Apache2 Ruby on rails and Redmine changing the rail app url

Hello I successfully set up my Redmine server (Ubuntu 12.04LTS, Apache2, Passenger, Mysql using the guide at http://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_in_Ubuntu ). However I ...
2
votes
2answers
427 views

Slash after domain in URL missing for Rails site

After redirecting users in a Rails app, for some reason the slash after the domain is missing. Generated URLs are invalid and I'm forced to manually correct them. The problem only occurs on a ...
2
votes
0answers
281 views

Passenger on apache hangs taking up all application processes with very high CPU IO Wait

I'm running a set of rails apps on a server under Apache/Passenger. One of the apps keeps getting into a state where the load on the machine gets very high and the machine becomes unresponsive with ...
2
votes
0answers
244 views

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 ...
2
votes
0answers
786 views

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 ...
2
votes
2answers
910 views

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 <%= ...
2
votes
1answer
564 views

portforward ec2 instance to localhost for rails development

I'm trying to work with facebooks real-time updates but I'm having trouble giving facebook a callback address that they can use. My dev machine is behind a firewall so I want to use an ec2 instance to ...
2
votes
0answers
275 views

How to add SSL for localhost in RAILS

I want to test my application which needs to work both with and without SSL. If it is possible to set up SSL for a local application (http://localhost:3000), please let me know some suggestions, my OS ...
2
votes
1answer
659 views

nginx causing redirection loop in case of https request

I have recently migrated my rails application from using HTTP request to HTTPS. My application URL is as follows: https://testmate.persistent.co.in I have mode all the required configurations in the ...
2
votes
0answers
581 views

Problems installing Gitorious on Debian 6.0.4

i am trying to install Gitorious on latest Debian 6.0.4 but i am running into some problems and hope there is somebody out here who might be able to help. I followed this article: ...
2
votes
2answers
817 views

Is removing ~/.rvm/ all I needed to perform a clean re-install

I have installed ruby and gems under ~/.rvm/, now I want to re-install all the stuffs agaain. Are there any modifications/links live outside of this folder? So, by just removing the folder ~/.rvm/ is ...
2
votes
1answer
171 views

Both virtualhosts pointing to same application. Apache, passenger, rails 3

A couple of months ago I set up a rails app using apache, passenger and virtualhost and I (eventually) got everything working fine. Now I am trying host another application on the same box. I've added ...
2
votes
1answer
275 views

lighttpd and mod_proxy with PHP

I am trying to create a rather complex setup using a combination of lighttpd, some custom Ruby proxies, rails/ramaze (running on Thin), and PHP. Currently it is setup like this: A browser issues the ...
2
votes
1answer
419 views

linux permissions problem rails FileUtils.copy

I have centos CENTOS 5.5 x86_64. apache 2.2 nginx/0.8.54 rails 3 ruby 1.8 passenger Its cpanel. What I am trying to accomplish is to upload an image to /tmp and then move it to the doc root of the ...
2
votes
0answers
269 views

Passenger/Rails not releasing memory

I have an Ubuntu server running three separate Rails (2.3.8) applications with Passenger, REE and Apache. Recently we started experiencing problems with ruby processes eating up memory and consuming ...
2
votes
1answer
875 views

How to setup Proxy Cache with Nginx and Passenger

I use Nginx and Passenger for my rails application. I want to use proxy cache to cache my pages. However, every request go direct to my rails application. I don't know what wrong with my ...
2
votes
1answer
843 views

Reverse Proxy (mod_rewrite) and Rails (absolute paths)

I have front end rails app, that reverse proxies to any of a number of backend rails apps depending on URL, for example http://www.my_host.com/app_one reverse proxies to ...
2
votes
3answers
2k views

Config Subdomain to point to heroku app

I have to host a subdomain of my domain to heroku app. For example abc.com points to a Hostgator account. I want to configure app.abc.com to heroku app. The domain is registered with godaddy. Can ...
1
vote
4answers
1k views

Tools for monitoring status and performance of a Linux, Ruby on Rails (using the Delayed Job gem), Nginx, Passenger, Mysql and MongoDB environment

I'm deploy an application in a Fedora Linux server. This application is a Ruby on Rails web application, using MySQL and MongoDB as databases. The application also uses the Delayed Job gem for ...
1
vote
1answer
2k views

Where does Varnish usually go in a Rails web stack?

I have a production Rails application deployed on Unicorn with nginx in front for static file serving. I now need some features of Varnish and I'm wondering how to introduce it. Some people put ...
1
vote
1answer
3k views

How Do You Set Up SSL on Ubuntu with Apache2 and Ruby on Rails?

What are the steps you need to take to set up SSL on a Ruby on Rails app that is hosted on Apache2/Ubuntu?
1
vote
3answers
454 views

Should I use ubuntu 11.04 or 11.10 on ec2 for a rails front-end server?

I have been digging around for an answer to this question and have come up with a handful of benchmarks and a whole lot of promotional material but it's not clear to me what to choose. If I am ...
1
vote
2answers
2k views

Ruby on Rails and PHP on Same Apache Web Server?

So I am really used to LAMP stacks and have an Apache and PHP setup on my Ubuntu server with about 30 PHP sites. I want to throw a new project up on the site that is built on Ruby on Rails. Is it ...
1
vote
3answers
377 views

What are the benefits of running a app server in user space, like Unicorn, as opposed to as sudo?

I've been using Phusion Passenger + Rails/Sinatra for a lot of projects. Passenger runs under the main Nginx or Apache process. But I'm interested in Unicorn, partly because it runs in user space. ...
1
vote
4answers
1k views

How to install Ruby on a Linode server?

As the title says, what's the best way to install Ruby and then Ruby on Rails on a Linode server?
1
vote
2answers
1k views

SASL (Postfix) authentication with MySQL and Blowfish pre-encrypted passwords

I have a Rails app with the Devise authentication gem running user registration and login. I want to use the db table that Devise populates when a user registers as the table that Postfix uses to ...
1
vote
1answer
1k views

package issue with ubuntu 10.10 and passenger requirements

I'm trying to get Passenger working with Ubuntu 10.10 and I'm running into a problem. It seems that the passenger installer is not recognizing the virtual package. I'm getting this error: Code: ...
1
vote
2answers
154 views

How to tell rails to use non-default ruby?

I need two different versions of ruby on a server. The packaged ruby for the packaged puppet to work, and a compiled ruby for a rails web app to work. So basically I want the default ruby to be the ...
1
vote
4answers
3k views

java max heap size, how much is too much

I'm having issues with a JRuby (rails) app running in tomcat. Occasionally page requests can take up to a minute to return (even though the rails logs processed the request in seconds so it's ...
1
vote
1answer
106 views

How to redirect users to another site, except for whitelisted IP Addresses, during deployments/testing?

I have a Rails 4 app on a single Apache server on a Centos 6 box. At the moment I am doing manual deployments, which is working well and only take a few minutes. I have no issue with this. Trying to ...
1
vote
2answers
2k views

lost connection after STARTTLS: Postfix

I've setup a Postfix + Courier server and have a Rails app configured with the SMTP server settings. Whenever the Rails app tries to send an email, this is what appears in the Postfix log (additional ...
1
vote
1answer
1k views

Instances slow when connected to AWS load balancer

I have setup 5 t1.micro EC2's behind an AWS load balancer. All the instances slow down once they are connected to the LB. Eight out of 10 requests takes more than 30s even when I do the requests ...
1
vote
2answers
250 views

ruby-on-rails app using webbrick server slow on some machines

I have a fairly simple ruby-on-rails app developed on mac, that was put into production on a debian web server. The web app uses the default webbrick server provided to run the app. The app runs ...
1
vote
1answer
1k views

bundle install throwing syntax error when setting up Rails

I'm trying to deploy a rails app to Passenger. When running bundle: [ps93785]$ /usr/lib/ruby/gems/1.8/bin//bundle install I get this: Gemfile syntax error: ...
1
vote
2answers
534 views

Trying to install wordpress inside rails app with nginx and fastcgi

I have a rails app (let's call it myapp) running at www.myapp.com. I want to add a wordpress blog at www.myapp.com/blog. The webserver for the rails app is thin (see the upstream block). The wordpress ...
1
vote
1answer
206 views

Default Apache test page when on SSL

I have the exact same configuration for my rails site on a staging server and a production server, aside from the "staging" vs "production" in the file paths. They're both set up to redirect all ...
1
vote
3answers
264 views

How to run two virtual hosts on the same server in apache

I've followed instructions on running two web apps in apache and my current confs are like this: apache2.conf: http://paste.ubuntu.com/1547286/ httpd.conf: http://paste.ubuntu.com/1547288/ ...
1
vote
3answers
1k views

How should secret files be pushed to an EC2 (on AWS) Ruby on Rails application?

How should secret files be pushed to an EC2 Ruby on Rails application using amazon web services with their elastic beanstalk? I add the files to a git repository, and I push to github, but I want to ...