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
1k views

Setting up a Rails 2.3.x app on EC2 for easy scalability

I'm running a simple rails stack on a single dedicated machine. We're reaching our full capacity and have absolutely no setup for scaling, just one app on one machine. I did some research and came up ...
2
votes
1answer
758 views

Prevent mail being marked as spam

This is a canonical question about avoiding outgoing mail being classified as spam. I'm wondering how to prevent my emails from my site being marked as spam? I'm using sendmail. I'm trying to ...
57
votes
6answers
36k views

How to force or redirect to SSL in nginx?

I have a signup page on a subdomain like: https://signup.mysite.com It should only be accessible via HTTPS but I'm worried people might somehow stumble upon it via HTTP and get a 404. My ...
3
votes
2answers
6k views

Multiple Rails sites using Passenger and VirtualHosts?

What I am trying to do is run multiple Rails apps from a server machine at work. We dont have multiple hostnames for the box. We want to host some rails apps on it as well as our php apps. Currently ...
1
vote
2answers
99 views

What rights does /vol/www have on ubuntu web server?

We are deploying our rails app on a ubuntu 10.04 server. When cap deploy:setup, there is a error saying that: * executing "mkdir -p /vol/www/myapp /vol/www/myapp/releases /vol/www/myapp/shared ...
0
votes
1answer
211 views

Ruby/Mongrel installation broken after CentOS upgrade, server won't start

I think my previous questions was somewhat badly formulated. I've got an issue with a CentOS system that is running ruby and a mongrel server which failed after an OS update. Edit: The initial ...
0
votes
3answers
618 views

Can I generate CSR for remoted server and what server I should use(thin,mongrel)?

I am moving my app into production and need help in generating CSR. I created a private key and followed these steps: Created private key Entered passphrase for it (openssl genrsa -des3 -out ...
11
votes
3answers
2k views

MySQL replication across geographically separate servers

My organisation has been looking into how to spread our servers around geographically while keeping backups very up to date, and ideally spreading the load. The initial thing I have in mind is Rails ...
4
votes
5answers
4k views

Running Ruby on Rails App on Apache + Passenger == to much memory

I'm running redmine (a RoR app) on my server using passenger / Apache 2.2. Passenger and ruby are using way too much memory. Is there a more memory effective way to run redmine/ruby? I only need to ...
9
votes
2answers
724 views

API Management Solutions [closed]

I'm currently building an API and am looking for a tool to allow me to monitor (in a GUI) and rate-limit usage. I've come across a few enterprise solutions including: http://apigee.com/ ...
5
votes
1answer
932 views

What causes a 400 Bad Request error for null (“”) and why would our nginx logs have so many?

Daily logs from Logwatch regularly report 400 Bad Request, null: 1744 Time(s) from our nginx logs. The log entries look like: 123.123.123.123 - - [25/Jan/2011:14:44:19 -0500] "-" 400 173 "-" "-" ...
4
votes
5answers
3k views

How do I serve Ruby on Rails applications on Windows Server 2008?

I have spent the last several hours attempting to get Ruby on Rails running on a Windows server with no luck. At first I tried configuring a test application through IIS7's FastCGI support, but the ...
2
votes
2answers
375 views

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 ...
2
votes
1answer
338 views

Separate server for Resque workers

I'm trying to segment a few servers for a Rails project and part of that is entertaining the idea of isolating Resque workers to their own box. I already have Redis broken out, but is it common to ...
0
votes
2answers
1k views

Apache Canonical Rewrite with Passenger (mod_rails)

I have a rails app served via Passenger (mod_rails) that I want to have a canonical URL. I want all requests to go to http://mydomain.com (so, rewrite http://www.mydomain.com to http://mydomain.com). ...
1
vote
1answer
451 views

Proper Passenger + Apache Permissions to fix error “No such file or directory - config/environment.rb”

I am having a problem with Passenger not being able to start due to an apparently common issue in which Passenger claims: No such file or directory - config/environment.rb. I have searched the web ...
1
vote
2answers
1k 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
3answers
175 views

Ruby testing on stable debian server

I've a dedicated debian 5.0 server, which runs the "stable" tree. Now I want to install [testing] ruby 1.8.7 - but my system isnt configured for installing testing packages via apt-get. How can I do ...
0
votes
1answer
38 views

how to make webrick server accessible on the web on windows server 2008

This is a nuub question (i'm more of a programmer given an admin task right now). I have a rails application that works just fine on a remote windows server 2008 machine (it's rails 2.3.5, and I run ...
0
votes
1answer
400 views

How can I setup nginx to serve virtualhosts with rails(unicorn/passenger) and php-fpm

I would like to serve multiple sites on one instance. I install nginx, php-fpm, and a rails app. I use sites like this to guide me. I configure php-fpm to listen to a local socket listen = ...
0
votes
1answer
253 views

Apache/Passenger and cpulimit

I run a ruby on rails site that processes email - the email is dumped directly into the web app via a POST from postfix. At times I can get a burst of email coming in causing a prolonged surge in ...
0
votes
1answer
474 views

Mysterious Ruby processes on Rails server

I'm trying to chase a bug on a Rails site and I've noticed that there are recurring Ruby processes which are hogging CPU and won't go away. I'd like to suss out what's starting them and how to either ...
0
votes
1answer
974 views

puppet dashboard fails to start

So here's the situation. I'm running Puppet on CentOS 5.7 64-bit, and on the puppet master I also have puppet-dashboard, however when I try to start it, I see the following: [root@puptest-master ...
0
votes
1answer
166 views

How to setup 2 URLs pointing to same location in Apache for Rails

I want to point 2 URLs to the same rails app. Seems like it would be easy but it's not working! The existing setup looks like this: <VirtualHost *:80> DocumentRoot /home/some/path ...
0
votes
1answer
607 views

how to install & set up RoR application on shared hosting

I successfully installed redmine.org application under my BlueHost account. I was following the official installation guide without any error. Point #8 says that I can test the installation by running ...
0
votes
2answers
726 views

Passenger: mod_rewrite rules for non-default page cache directory for Rails application

Does anybody have some working Apache mod_rewrite rules that enable Phusion Passenger (mod_rails) to use a non-default location for the page cache within a Rails application? I'd like the cached files ...
0
votes
1answer
1k views

Apache dispatch.fcgi doesn't get interpreted with Passenger

I've installed passenger as ruby gem. I've added following to /etc/apache2/apache2.conf LoadModule passenger_module /var/lib/gems/1.8/gems/passenger-2.2.4/ext/apache2/mod_passenger.so PassengerRuby ...
-1
votes
2answers
92 views

passenger is listing all the public folder files

Hello everyone please ignore my noobness, this is very first time i am deploying RailsApp; I have used apache and phussion passenger with rvm, here is my virtual host configurations that i added in ...