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)

-1
votes
2answers
122 views

How do I set a domain name with a port in hosts file? [closed]

I have Apache and Rails running on my laptop. Apache is running on port 80 and rails 3000. in my hosts file I have entries like 127.0.0.1 dev.somesite.com This works well for Apache How do I add ...
2
votes
2answers
74 views

Rails production Ubuntu Server

With Rails 4 and Ruby 2.0, is it still necessary to install Phusion Passenger? It is my understanding that the purpose of Passenger was to manage memory leaks which were present before Ruby 2. If ...
-5
votes
2answers
44 views

Rebooting whole server for Rails [closed]

I'm migrating a Rails project onto an Apache server. I've followed the steps similarly to this link (installed passenger as ruby gem, added some lines to /etc/apache2/apache2.conf, set Vitual Host to ...
0
votes
0answers
134 views

Intermittent SSL “Timeout” w/ Apache and a RoR Passenger App

I am completely lost on this one so I'm hoping someone here may have experienced it before. I have a RoR application running with passenger in apache. It sits on EC2 and is load balanced using ELB. ...
3
votes
1answer
223 views

Is there a backend-aware load balancer for Rails/Passenger?

We have 3 Ruby on Rails applications (A, B and C) installed on a number of application servers. Our front end is HAProxy, backend is Apache + Phusion Passenger. Originally we had all 3 Rails apps ...
0
votes
1answer
36 views

How to configure http.conf without a ServerName?

I've the following example given to me to set up rails on CentOS with apache / passenger: <virtualhost *:80> RailsEnv development ServerName app.com ServerAlias www.app.com DocumentRoot ...
1
vote
1answer
128 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 ...
0
votes
1answer
455 views

Why does amazon ec2 have downtime after deploy when other identical servers do not?

This has puzzled me for the past few months...I'm admittedly new to server administration and I took a stab running a production rails app over at EC2. While I've learned a lot and feel pretty ...
0
votes
1answer
2k views

Uninstall Ruby on Rails on CentOS 6

How can I remove Ruby on Rails and all associated gems? I tried yum remove ruby but get this response: yum remove ruby Loaded plugins: fastestmirror, security Setting up Remove Process No Match for ...
0
votes
2answers
77 views

App got press, then servers got owned. I added 8 more servers, STILL too slow [duplicate]

Our new app has received a lot of press today, and is getting thousands of new users every hour... but it has become so slow that it's unusable. We're using Rails 3 patched to latest, ubuntu, ...
2
votes
1answer
109 views

Mongodb production server too slow compared to staging

We have two sets of db and app servers running on Rackspace VPS. Production and Staging. The app is on Rails and db is MongoDB. While staging(with as many documents as prod, 55k) works just fine, ...
0
votes
1answer
84 views

Migrate Rails app with passenger, capistrano(with rubber), and ImageMagick to Dreamhost

I have a beta app that a developer has made for my company and I need to clone their work onto another server. I have successfully backed up the MySQL database to another server and copied all their ...
0
votes
0answers
77 views

Dedicated server vs VPS: advice on scaling site

We could use advice on a scaling/ops issue. We have a simple mobile app that runs on Rails 3.2.12 and uses MongoMapper instead of ActiveRecord. There is one database call that sporadically performs ...
3
votes
1answer
664 views

Mongrel over mod_proxy unacceptably slow

Here is the situation C:\>ab -n 100 -c 5 http://webserver/track/ This is ApacheBench, Version 2.3 <$Revision: 655654 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, ...
0
votes
0answers
217 views

Upgrade OpenSSL to Latest Version

I'm build app ruby on rails but openssl on my server is old. I need upgrade openssl because openssl certificate verfication failed. OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008 Centos 5.8 I have tried ...
0
votes
0answers
244 views

Why do I need to precompile Rails assets on app servers?

I'm deploying a simple Rails app to this small ubuntu precise64 server setup : * 1 server running nginx * 2 servers running unicorn * 1 server running postgresql My servers are provisionned with ...
0
votes
2answers
381 views

Can we run Ruby on Rails app and a Wordpress blog in the same server? How?

Im running Nginx on my PS server. It have three Wordpress websites. Im trying to start converting one website into a Rails application. First I will convert only the front page. The other sections run ...
0
votes
1answer
288 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
1answer
246 views

Multiple Rails/Rack apps Nginx one for each subdomain

I just hired a VPS with Ubuntu 12.10 x64. I've managed to get one Rails app running with passenger-nginx. Now I want to run another app as a subdomain, say for example admin.mydomain.com. How can I do ...
1
vote
2answers
234 views

Rails: Multiple application deployment strategy

At my company, we currently have one main project which is a big monolithic Rails app. Deployment is easy, we have a couple of frontend servers (setup with Puppet) which Capistrano deploys into ...
1
vote
3answers
523 views

How to Update Redmine on Windows (Helicon Zoo)

Quite some time ago I installed Redmine 2.1.2.stable using Helicon Zoo feed. And it's been working great (minus multi-minute app pool warm up times). What's the best way to upgrade to the latest ...
0
votes
1answer
67 views

Scaling Rails 2.x application with more app servers

I'm thinking of a setup for our rather popular website to be able to scale on the CPU side of things. We are running quite a few CPU intensive image conversion jobs at random times (user input) and ...
1
vote
2answers
305 views

Nginx + Unicorn multiple apps with locations - routing

I would like to run multiple rails apps with just using different location blocks. Different unicorn workers are started and configured, they are working just fine. Every app is under the same ...
0
votes
1answer
56 views

How to assess how much a Ruby/MySQL server can keep up?

We've taken over a legacy system that was implemented between 2007-2009 in Ruby and MySQL and since then has had only maintenance work done on it that was necessary to keep it alive. As a result, ...
0
votes
2answers
380 views

Rails: Mysql: Post-server-restart: why do I get “Can't create/write to file '/tmp/#sql_4d2b_0.MYI' errors”?

I get ErrorCode: 2 which I assume is ENOENT (No such file or directory). Here are the full details (from my stackoverflow post, which was closed by the powers-that-be as being of limited interest. ...
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) * ...
0
votes
1answer
212 views

Pass on passenger_base_uri to Rails app

We built a Rails app that consists of the following routes: namespace :api do namespace :v1 do resources ... end end That means, all controllers are reachable via ...
1
vote
1answer
306 views

setup Nginx, uwsgi for RAILS app on non-root location

I've set up and run a RAILS app (graylog2), and bellow config made it worked for root location: server { server_name www.mydomain.com; location / { gzip off; uwsgi_modifier1 ...
0
votes
1answer
159 views

Can pingdom shut down/slow down a site on Heroku?

We have a Rails app on Heroku. We have 2 dynos. We're noticing that the site is not loading today with frequency. Lots of Request timeouts. Also, assets in particular, which are also hosted on ...
1
vote
0answers
439 views

Ubuntu, ruby 2, rails 4

I'm trying to setup a server, which has Ubuntu 10.04 LTS, Ruby 2.0.0-p0 and Rails 4 beta1. I can get everything installed but rails 4 has a slight error and I'd like to get someones opinion. When I do ...
0
votes
1answer
291 views

Redmine (RoR rack app) on uWSGI forgets sessions when ran with more than one process

When I log into redmine it forgets that I was logged after first click on any link or immediately after the login redirect. After I refresh the page a few times, I am still logged in in some of this ...
0
votes
0answers
240 views

How to set up SPDY Protocol over Nginx?

I am having problem setting up the SPDY protocol for my rails app over nginx. Here is the complete detail of the setup on stackoverflow. ...
2
votes
1answer
682 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: ...
0
votes
1answer
186 views

Gitorious - ActionController::UnknownHttpMethod when logging in?

I'm going to install Gitorious as a slave server for failover purpose follow this blog post. gitorious.conf NameVirtualHost *:81 <VirtualHost *:81> ServerName gitorious.domain.com ...
0
votes
1answer
464 views

Nginx + Unicorn Rails Application gets 404 when requests number are high

I have a Rails application deployed using Nginx + Unicorn. Last night, when the traffic peaked, Nginx was getting lots of 404 errors. When I dig into logs, those 404 requests on the nginx side did not ...
0
votes
1answer
153 views

Duplicate requests with different IPs from client causing duplicate actions in Ruby on Rails 3.2 controller

I have been trying to figure this issue out for a while re-checking my code and searching on the internet, I found some possible answers if the cause was something else but nothing exactly like I have ...
0
votes
1answer
386 views

problems with nginx and serving ssl; possible certificate issue

I have a site that I haven't launched yet that is running all http traffic on production over ssl. The problem is that if a call is made to https://www.domain.com/homepage.html , there is also a call ...
1
vote
1answer
234 views

How can I make apache use PHP over passenger by default?

Here's my setup: I have an apache server running a number of virtual hosts, each of them using PHP. I now have a rails app I want to install to a subdirectory for one of the sites (a subdomain would ...
2
votes
1answer
496 views

How to debug why my server has 3s delay on each request nginx/unicorn?

I am trying to debug why my server has 3 seconds delay on each request. These are my nginx and unicorn config files: https://gist.github.com/regedarek/de7f2e5cd1918b6224ac My server info: ...
0
votes
1answer
358 views

Trouble installing Redmine on CentOS 6.2 - undefined method db for main:object

I am trying to install RedMine on CentOS 6.2 but I am running into difficulties when I try to access the site. Using this guide, I have configured the following in environment.rb: # Load the rails ...
1
vote
1answer
1k views

Problems set-up Single Sign-On using Kerberos authentication

I need for Ruby on Rail application set authentication via Active Directory using Kerberos authentication. Some technical information: I are using Apache installed mod_auth_kerb In httpd.conf I ...
2
votes
2answers
488 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
2answers
422 views

How do I completely remove all Ruby gems?

I am trying to completely remove my Ruby and Rails installation. After uninstalling Ruby with apt-get remove ruby1.9.1 I see that all the Ruby stuff like ruby, rake and irb from "/usr/bin" was ...
1
vote
1answer
260 views

Sporatic 502 errors with Ruby on Rails site running on Nginx

My Ruby on Rails site is throwing sporadic 502 errors. It is running on Nginx, installed with Passenger, and is hosted on a server running Ubuntu 10.04. It seems that the errors are becoming more and ...
0
votes
1answer
86 views

Ruby on Rails production environment having SQL issues

I'm rather new to rails applications, and their respective deployment procedures. I've been having some issues with an application that I plan to run on my server, in the production environemt. The ...
2
votes
1answer
245 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 ...
1
vote
3answers
226 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
0answers
383 views

Problems with apache2 and SSL not load files CSS and JS

I have an application in Ruby on Rails 3.2.8, and I'm using passenger-Nginx as Web Server on port 3037 with Apache2 and SSL using ProxyPass and ProxyPassReverse. My problem is, when load in chrome or ...
1
vote
0answers
196 views

Elastic Beanstalk Rails - Modify passenger config passenger_max_pool_size

I need to increase the passenger_max_pool_size for my Rails application running on passenger. I have used Elastic beanstalk for deployment. Any idea, how to go about this? Is there an optionsetting or ...
0
votes
1answer
548 views

No data received - Passenger, (52) Empty reply from server

I had setup Elastic Beanstalk for my rails application last month (Passenger). All was good.. but all of a sudden, my servers are not responding well. My application access gives 'No data received - ...