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
2answers
456 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
158 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
252 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
340 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
245 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
641 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
728 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 ...
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
3answers
448 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
1k 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
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
2answers
242 views

How to setup nginx server with wildcard DNS

This is about an sample Rails app that uses subdomains. You can access it here: http://rodrigora.com.br. In this app, you can create site and specify one subdomain for it. Example: site: ...
1
vote
1answer
493 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
3answers
266 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
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
153 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
2answers
198 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
91 views

How to automate an installation of phusion and nginx?

When I run the command: ./passenger-install-nginx-module It asks me a bunch of questions when I am SSH'd into my server. I want to automate this process, how can I do that if it requires specific ...
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
507 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
277 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
86 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
2answers
321 views

Can't connect to Postgres in production

I'm trying to connect to my Postgres instance on a local IP, which I can connect to with no problem using the psql -h localhost command. However, which trying to run via rails, I get this: $ rails c ...
1
vote
3answers
745 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
2k 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
80 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
442 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
130 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
140 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? ...
1
vote
1answer
60 views

Unclear with understanding of “cloud” services [closed]

I run a RoR/MySQL/Apache stack currently on a slicehost slice. We are coming out of beta within the next few weeks and im concerned with the scalability of the slice, in case we get big. Ive been ...
1
vote
3answers
134 views

example.com and www.example.com points to two different apps

The problem is simple, http://example.com and http://www.example.com aren't the same sites. The problem is surely in my VHost configuration: PassengerMinInstances 5 PassengerPoolIdleTime 0 ...
1
vote
4answers
253 views

SSH global $PATH

When I'm logged in my ArchLinux server and type: $echo $PATH I get... /usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin/core_perl But when I'm NOT logged in and try: ssh ...
1
vote
2answers
995 views

Load balacing Scenario - Am I right?

I currently have one webserver which runs my websites, all requests go straight there. The Webserver runs ruby on rails and everything is going fine, but as my sites grow, I will need to either get a ...
1
vote
2answers
592 views

Ubuntu Create FTP account automatically upon user creation

I will note that I am using Rails but this is not a Rails issue. I'm not very experienced with Linux but I do know I'm running Ubuntu 10.04 LTS on Linode. Upon user registration the user is ...
1
vote
2answers
354 views

Hosting many Ruby on Rails Applications/Sites

We are looking to host some 50-100 rails apps. What would be the best server model to handle this? By server model, I mean like several load balanced servers or small VPS per site etc. I've used ...
1
vote
7answers
985 views

Web app cannot write to a file on my server that seems to have the right permissions

I have a rails app on an Ubuntu server. In my Apache config I have set the user and group to www-data. I want my rails app to write to a file. I have set the file permissions as follows: ...
1
vote
2answers
59 views

Why server writes much more than reading the disk

I'm running one Ruby on Rails application, I use Passenger Nginx, Ruby on Rails 3.2, search gem Sunspot (which uses Solr as its search engine). My application works ok with around 6K active users but ...
1
vote
2answers
106 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
3answers
419 views

chef-server-webui session not working when access from external IP address

I have installed chef-server on an Ubuntu 12.10 system using the official .deb package for that release. After the installation had finished I run chef-server-ctl test Which reported success, 0 ...
1
vote
2answers
314 views

Should I add the user www-data? Trying to get Rails off the ground

I'm trying to set up a Rails application on a redhat server, and in accordance with instructions I have found on multiple tutorials, I wish to set the owner of certain directories to 'www-data' so ...
1
vote
1answer
792 views

scalability with nginx, passenger, ruby on rails setup [duplicate]

Possible Duplicate: How do you do Load Testing and Capacity Planning for Web Sites Hey guys I had a question regarding scalability for my RoR application. We have been optimizing our ...
1
vote
2answers
3k views

pg_dump not working - do I need to change order of $PATH?

I'm trying to set the $PATH to pick up the latest version of pg_dump as I'm currently getting a mismatch error while doing a migrate in my Rails app (I recently changed the schema type to SQL). I ...
1
vote
1answer
102 views

Maxed out directories in public folder for rails. What can I do?

We have a rails app that dynamically generates thumbnails on request and saves the result locally to make it faster to serve up the same one again. We use the following url structure: ...
1
vote
1answer
246 views

Random timeouts between zones in Amazon EC2?

I am having issues with tcp connections between two instances in EC2. I thought at first it was the tools I was using (JRuby on Rails stack + MongoDB) when I saw exceptions such as the following in my ...
1
vote
1answer
125 views

Haproxy Slow Reload in DB Mode

Recently I started using great tool for load balancing - Haproxy. There is only one disturbing thing that I cannot figure out how to deal with it. We use haproxy for load balancing mysql traffic. ...
1
vote
2answers
104 views

Setting up apache for rails on ubuntu

I have apache with the following 000-default file for my app <VirtualHost *:80> ServerName www.yourhost.com DocumentRoot /somewhere/public <Directory ...
1
vote
1answer
473 views

Nginx Passenger returning 500s for every request

Up until this point I've been using the standalone passenger (nginx-based) for my application. Everything works fine. I've decided to move to an nginx based solution since I need to be able to ...