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
1answer
609 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
43 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
838 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
198 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
766 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
286 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
404 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
265 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
230 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
757 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
887 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
554 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
250 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
636 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
571 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
761 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
273 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
400 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
265 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
812 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
822 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
689 views

How to properly secure Unicorn/RoR server on ubuntu? Or, harden RoR application stack?

I have few Unicorn servers running on Ubuntu 12.04 and I am looking to secure them against exploits which give remote shell. My main concern is, if it makes sense to deploy ModSecurity? Another ...
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
453 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
361 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
90 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
1k views

Explain load-balancing with Nginx like I'm five

I've found plenty of DIY posts and tutorials on how to configure Nginx as a load-balancer using upstream server: upstream backend { ip_hash; server 1.2.3.4; server 1.2.3.5; server 1.2.3.6; } ...
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
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
503 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
173 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
251 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 ...
1
vote
3answers
3k views

Upgrading Redmine, activerecord-mysql2-adapter not working

For upgrading Redmine from 1.0.1 to 2.1.2, I need to execute the command: rake db:migrate RAILS_ENV=production However, doing so produces the following error: rake aborted! Please install the ...
1
vote
1answer
103 views

Rails mailer fails to deliver [closed]

When I'm using password recovery in Rails, I get this in the development log: Sent mail to me@gmail.com (1024ms) Date: Sat, 21 Jul 2012 15:24:35 +0700 From: me@gmail.com Reply-To: me@gmail.com To: ...
1
vote
2answers
561 views

How to prepare for a huge spike in traffic for launching a website hosted on Heroku?

I am getting ready to launch a site I've been working on, and am talking to some bloggers. It's planned to go live next week and press will write about it when it does. But the thing is, this is my ...
1
vote
2answers
152 views

Cannot connect to domain despite successful pings

Pings to my domain name work, but I can't connect via http. I've been trying various methods for a week now, but haven't come up with anything that worked. Any idea what's causing this? ...
1
vote
1answer
145 views

Co-locating my first server [closed]

I have been running a self-managed dedicated server for a a few years now, and think I'm ready for my first co-located server. I have some questions I hope you can help with. What is the server for? ...