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
0answers
608 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
817 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
535 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
231 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
567 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
546 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
608 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
166 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
265 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
375 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
258 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
701 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
799 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
2answers
368 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
612 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
452 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
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
317 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
1answer
60 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
647 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
104 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
866 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
416 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
118 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
993 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
95 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
504 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
140 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
143 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
61 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
141 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
2answers
3k views

Can you stream an mp3 file with nginx?

I have a Ruby On Rails application running on Nginx which is serving out MP3s using JW player. I need to be able to set the start time and duration for playlist items. From what I can tell to do ...
1
vote
4answers
258 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
1k 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
604 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
355 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
1k 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
1answer
2k views

“768 worker_connections are not enough” error after a fresh installation of nginx and ROR

I have a fresh installation of nginx and ruby on rails. But it gives me a '500 Internal Server Error' while testing. The error.log for my app has the following: 2014/05/01 17:27:15 [alert] 1423#0: ...
1
vote
2answers
65 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
158 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
5k views

Ec2 instance down with error: cannot create temp file for here-document

Iam running my website built on ruby on rails in development mode on ec2 instance, when i ssh to that instance it says.. Welcome to Ubuntu 12.10 (GNU/Linux 3.5.0-17-generic x86_64) * ...