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
vote
3answers
391 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
58 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
457 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
7k 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
278 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
355 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
184 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
455 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
307 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
259 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
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: ...
0
votes
1answer
206 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
578 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
170 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
498 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
293 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
585 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
413 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
2k 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
688 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
560 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
311 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
94 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
287 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
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
0answers
493 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
222 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
629 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 - ...
0
votes
1answer
448 views

Redirect to HTTPS from my Amazon Elastic Load Balancer

I have a rails app on 2 EC2 Instances running nginx behind an Amazon Elastic Load Balancer. I'd like to force HTTPS, which was working fine before I added in the Load Balancer. Now I can't quite ...
5
votes
3answers
822 views

Running Rails3 with force_ssl = true, with nginx, on AWS EC2 with SSL terminated by an ELB, setting up health check

I want to run my entire Rails app with SSL, so I thought to use Rails' global force_ssl config option, which works great, except that the ELB's healthchecker will never work because if I set it to ...
2
votes
2answers
571 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
0answers
302 views

URL Rewriting and Rack base paths

I'm trying to set up a Rails website on Bluehost and I'm having trouble with the path helpers. As I don't want to monkey-patch Rails, I'm trying to solve this through .htaccess. Here's the scenario: ...
-2
votes
1answer
634 views

shift a localhost site from webrick localhost:3000 to apache2 passenger localhost/redmine or redmine.localhost [closed]

I have installed application called REDMINE on my localhost, using ruby on rails. It is accessible webrick script through localhost:3000, on my PC. Now I want to shift to apache2 passenger, I tried ...
2
votes
2answers
406 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 ...
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
votes
2answers
355 views

rvm doesn't install in centos without root privileges [closed]

I trying to install RVM using deployer user that doesn't had root privileges ant I getting this error: bash: line 439: ./scripts/install: Permission denied Any help? Thank you!
3
votes
2answers
1k views

How to configure Elastic Beanstalk for using Rails with Postgres?

Elastic Beanstalk has built in support for RDS. But, I want to use Postgresql with Elastic Beanstalk. Which will be the best approach for doing this?
1
vote
0answers
75 views

How to create a Capistrano task to import a backup from production into local development db?

I'm trying to do something with a Capistrano task that is similar to the heroku db:pull functionality if you are familiar with it. I have a remote server. On that server I have a bunch of backups in ...
1
vote
2answers
649 views

nginx server block shows welcome page

I'm trying to set my rails app to a specific subdomain. I'm using an ec2 instance with a bitnami rubystack VM I developed the app using it with the ip of the server, so I know that rails and the app ...
2
votes
2answers
760 views

nginx conditional Accept header

Some mobile devices send the following incorrect requests to our servers : GET / HTTP/1.0 Accept: User-Agent : xxx The empty Accept header causes our Ruby on Rails server to throw back a 500 error. ...
1
vote
0answers
154 views

Should I have a heroku worker dyno for poll a AWS SQS?

Im confusing about where should I have a script polling an Aws Sqs inside a Rails application. If I use a thread inside the web app probably it will use cpu cycles to listen this queue forever and ...
1
vote
1answer
1k views

How to resolve high CPU + excessive stat(“/etc/localtime”) and clock_gettime(CLOCK_REALTIME) calls

I've been experiencing really high CPU on a ruby on rails app (see stack below) and have been trying to diagnose the possible causes to no avail. Stack: ruby 1.9.3 rails 3.2.6 Apache/2.2.21 ...
1
vote
1answer
188 views

Not breaking permissions when running Rails-related commands on the server

As part of my deployment process I would run a chown -R www-data:www-data in all of /var/www/projectx. That is taking way too long, so instead of periodically fixing permissions, I want to avoid ...
0
votes
1answer
819 views

nginx large file upload gives HTTP Error 413 Request entity too large in rails

I trying to build a rails application to upload large video file which will be hosted at s3.amazonaws.com server it works fine with smaller file but gives 413 Request entity too large error for large ...
0
votes
1answer
386 views

error 503: Can't deploy rails 3 app with apache + thin (bitnamy ruby stack)

As you'll notice, I'm a bit of a noob on Rails. Here's the thing I have a EC2 Bitnami RubyStack AMI running. I'm trying to deploy the sample project to be sure I'm doing the right thing, but I'm not ...
4
votes
1answer
114 views

AWStats combine page URLs

I'm running AWStats on a Rails site with nginx and I have pages that are accessed like this http://mysite.com/order/receipt/[receipt_tag] I'd like for AWStats to show those as x hits for page ...
1
vote
3answers
827 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
votes
2answers
917 views

How to restart RoR services after server has been rebooted

Update I have been searching around to see what services would possibly need to be restarted in my project after reboot. One of them was thinking sphinx, which I finally got to the point where it ...
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
211 views

RHEL 6.x on Rackspace Cloud and Dedicated hardware experiencing Redis Timeouts

I just recently set up a mixture of RHEL 6.1 Rackspace cloud hosts and RHEL 6.2 dedicated hosts using Rackconnect. I am experiencing intermittent Redis timeouts from within our Rails 3.2.8 app with ...