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)

0
votes
0answers
230 views

using nginx with proxy_pass on a subdomain

a have a rails app that should listen on the subdomain redmine.example.com (using proxy_pass). all other requests for *.example.com should just redirect to a normal index.html. Here is my ...
1
vote
0answers
67 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
444 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
562 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
127 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
862 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
148 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
493 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
316 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
103 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
655 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
745 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
172 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 ...
3
votes
1answer
518 views

Rails/Mongo across multiple different geo-regions

I have a system that by necessity requires physical presence in three or more different locations and I need advice on structuring in such a way that my database stays replicated in a timely manner ...
0
votes
1answer
639 views

Linode setup via Chef [closed]

I'm working on setting up a Linode VPS from scratch but instead of doing it manually I wish to use Chef so I can easily automate it in the future. The question I have is: I realise you can set up ...
3
votes
1answer
643 views

Why is my Rails application hanging?

I have a Rails application of moderate complexity running under Apache/Passenger which becomes unresponsive after periods of idleness. It takes several minutes to respond, but can be temporarily ...
0
votes
1answer
98 views

rails-boilerplate (0.1.9) gem mirror

Using paperclip (3.2.0) Using polyamorous (0.5.0) Using pr_geohash (1.0.0) Using slop (3.3.3) Using pry (0.9.10) Using pry-rails (0.2.2) Gem::RemoteFetcher::FetchError: too many ...
0
votes
1answer
227 views

Unicorn, USR2 and the config file

My Bash script has the following code that doesn't throw an error. echo "Reloading Unicorn if USR2 is enabled" kill -USR2 `cat $PID` if [ -s $OLD_PID ] then kill -WINCH `cat $OLD_PID` && kill -QUIT ...
1
vote
2answers
580 views

Redmine 2.1 stable on Windows 8 as a service

Wamp Server: Apache Version : 2.2.22 PHP Version : 5.4.3 MySQL Version : 5.5.24 Ruby: ruby 1.8.7 (2012-06-29 patchlevel 370) [i386-mingw32] Gem: 1.8.24 Gems: actionmailer (3.2.8) ...
1
vote
2answers
281 views

Rails app returns HTTP 422 for new ServerAlias - Internet Explorer only

I have a long-standing Rails app running on Mac OS X (apache2). The set-up uses Apache virtual hosts and Passenger. The Rails app also uses HTTP Basic Authentication. I need to migrate the app from ...
1
vote
0answers
56 views

Apache2 Not Running Rails

I have an apache with my vhost like: <VirtualHost *:81> ServerName sandbox.myserver.com DocumentRoot /var/www/mysite/current/public <Directory /> Options FollowSymLinks ...
0
votes
1answer
1k views

*2 connect() failed (111: Connection refused) while connecting to upstream

2012/10/26 14:57:49 [error] 14180#0: *2 connect() failed (111: Connection refused) while connecting to upstream, client: 24.0.20.48, server: , request: "GET / HTTP/1.1", upstream: ...
2
votes
0answers
254 views

Passenger on apache hangs taking up all application processes with very high CPU IO Wait

I'm running a set of rails apps on a server under Apache/Passenger. One of the apps keeps getting into a state where the load on the machine gets very high and the machine becomes unresponsive with ...
0
votes
1answer
723 views

unicorn and nginx, went wrong

I try to deploy my app via capistrano. It was done, but when I start to nginx and show my site in the browser I see 'We're sorry, but something went wrong.' It is bad. I use unicorn. See my configs ...
0
votes
1answer
882 views

Error installing new rails version. Failed to build gem native extension

I am trying to build my first ruby on rails app using the following guide (http://ruby.railstutorial.org/chapters/a-demo-app#code-demo_gemfile_sqlite_version_redux) and have run into a few obstacles. ...
1
vote
4answers
80 views

is it possible to have two web servers hosted at different places share the same domain name?

say I have a wordpress site: https://www.foobar.com and I want to have an entry point to a rails app at a certain subdirectory within that same domain: https://www.foobar.com/rails_app I know this ...
3
votes
1answer
137 views

Application specific environment on the same server in Nginx/Passenger

I have two Rails applications (say app1 and app2) deployed using Nginx/Passenger. The server definition in nginx.conf looks like this: server { rails_env demo; client_max_body_size ...
1
vote
2answers
124 views

Server down at 23:26 every night

We are having a big problem with our sites stability the last couple of weeks and after endless hours of troubleshooting I don't get anywhere. So I turn to you dear community. Setup: 2 x VPS servers ...
0
votes
1answer
418 views

how to use Linode to host multiple web apps - RoR and PHP [closed]

I have a Ruby on Rails application and a couple of PHP projects nearly complete (all using MySQL) that I'd like to host on a Linode server and need some help with what I'd need to install and ...
1
vote
0answers
44 views

after redmine install i see only the filesystem

After installing redmine, I can only access the filesystem! I reinstalled redmine 2-3 times in different ways. Used these "how to"s: 1, 2, 3 the webserver of 10.0.0.14 is going to be behind a ...
1
vote
0answers
118 views

Scaling a video processing application on EC2?

I am approaching the need to scale a video-processign application that runs on EC2. So far the setup is one machine: Backbonejs frontend Rails 3.2 Postgresql Resque + S3 for storage The flow of ...
1
vote
2answers
141 views

How do I launch unicorn_rails as a startup script with rvm installed on my ubuntu 12.04 machine?

I have a rails app on my server. I have a script startup.sh which launches unicorn_rails and then nginx. In order to get my server to launch on system boot, I've added a line to call my startup ...
1
vote
1answer
881 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
0answers
197 views

Deploying a rails app to 1&1 Virtual Server L Windows first steps

Evening all, I have a rails app that I need to deploy to a 1&1 Virtual Server L Windows. My setup uses a MYSQL db, rails 3.2, ruby 1.9 and was built on a mac. I have read numerous accounts of ...
1
vote
1answer
170 views

Best configuration and deployment strategies for Rails on EC2

I'm getting ready to deploy an application, and I'd like to make sure I'm using the latest and greatest tools. The plan is to host on EC2, as Heroku will be cost prohibitive for this application. In ...
1
vote
1answer
576 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 ...
0
votes
1answer
419 views

Session persistence between multiple Rails / Unicorn servers with Redis as session_store on AWS

I've got 2 nginx EC2 instances pointing to 2 Unicorn EC2 instances in a round robin load balanced configuration. The two nginx instances are being the Elastic Load Balancer. Both Unicorn instances ...
2
votes
0answers
194 views

Phusion Passenger setting PassengerPreStart does not activate using service httpd start

I'm running Phusion Passenger on RHEL, hosting a Rails application. I can successfully start up a passenger instance on Apache startup using the Passenger setting PassengerPreStart, but only if I ...
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 ...
4
votes
3answers
2k views

Operation not permitted when starting Unicorn

I've created an nginx/unicorn/capistrato setup on Ubuntu (Amazon EC2) by following mostly this guide. I guess everything is set up like it should but when I start Unicorn I get (a LOT of) this error ...
2
votes
0answers
572 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 ...
0
votes
1answer
583 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 = ...
1
vote
0answers
159 views

Proxy to either Rails app or Node.js app depending on HTTP path w/ Nginx

On Ubuntu 11, I have Nginx correctly serving either CouchDB or Node.js depending on the path, but am unable to get Nginx to access a Rails app via it's port. server { rewrite ^/api(.*)$ $1 last; ...
1
vote
2answers
270 views

Monit and Thin and Unfound Gems

I've been using Monit to monitor my Thin server and everything was working until I upgraded my Rails version from 2.3.4 to 2.3.14. Now when I try and start Thin using monit it gives me an unfound gem ...
1
vote
2answers
126 views

Ruby Application Webroot Location

I have inherited a ruby application at work and I am fairly new to ruby hosting environments. The application is hosted on a linux server but I am unable to find where the webroot is. I have looked ...
0
votes
1answer
705 views

500 error with deploying rails application via apache2+passenger

I finally completed my own app, so the only work left is deploying the app. I'm using Ubuntu 10.04 and apache2(installed by apt-get), so I'm trying to deploy through passenger. I installed passenger ...
1
vote
0answers
485 views

Installing a Ruby On Rails Application (fedena) on an ISPCONFIG 3 site

I have a debian squeeze box running ispconfig 3. I am trying to install an application made in ruby on rails Project Fedena Install. According to that installation, it looks like it will only work if ...
1
vote
1answer
96 views

Allow a group to run all files under a certain directory in CentOS

I am trying to set up automatic deployment for my Rails app using Capistrano. Capistrano will need to run sudo kill, and I achieved that without it asking me for a password, by editing the ...
3
votes
1answer
696 views

Nginx + Unicorn

I am working on a migration from nginx + passenger to nginx + unicorn and I have reached a point where I am a bit stuck. When I attempt to view my test server, I get nothing but a 404 page. I am sure ...