Questions tagged [ruby-on-rails]

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.

Ruby on Rails is an open-source web framework that's optimized for programmer happiness and sustainable productivity. It lets you write beautiful code by favoring convention over configuration.

911 questions
4
votes
1 answer

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) * Documentation: https://help.ubuntu.com/ System…
Bijendra
  • 171
  • 1
  • 1
  • 9
4
votes
2 answers

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?
4
votes
2 answers

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 (Debian) Phusion Passenger 3.0.11 Whenever I run strace…
Yemster
  • 41
  • 1
  • 3
4
votes
1 answer

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 /order/receipt/* instead of 1 hit for [tag x], and 1 for…
Jon
  • 41
  • 1
4
votes
2 answers

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 revived with a web server restart. Server load is…
Tim
  • 49
  • 1
  • 3
4
votes
5 answers

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 documentation for this is not very good. I've been…
Adam Lassek
  • 492
  • 1
  • 9
  • 18
4
votes
2 answers

Can't install libpq-dev, ubuntu 10.10 and postgres 9

I need some headers from the dev-version of postgres 9, which is contained in libpq-dev, for installing the pg gem, but when I execute: sudo apt-get install libpq-dev I get the result: The following packages have unmet dependencies: libpq-dev…
sheepwalker
4
votes
1 answer

ruby: invalid opcode

There's a fairly complex application than runs on two VMs (on Xen). Both VMs run CentOS 6.2 with the exact same packages and configuration for every application running (minus networking which is different). SELinux is disabled on both. On machine A…
adamo
  • 6,925
  • 3
  • 30
  • 58
4
votes
1 answer

Bundle install on build in TeamCity

I'm trying to run a build in TeamCity. The application that i'm trying to build for unit tests is coded in Ruby on Rails. I configured the VCS root to get from my repository, after cloning the build fails. Here it is: Bundler::GemNotFound: Could…
Mr_LinDowsMac
  • 295
  • 1
  • 10
  • 21
4
votes
5 answers

Passenger 2.2.4, nginx 0.7.61 and SSL

Has anyone had any luck configuring Passenger and nginx with SSL? I've spent hours trying to get this configuration working as I'd like, using what few resources there are out there on the net, and I can't get any of the supposedly forwarded headers…
Chris White
  • 141
  • 1
  • 2
4
votes
0 answers

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 is Ubuntu 10.4.
loganathan
  • 240
  • 2
  • 13
4
votes
1 answer

Is Apache ReverseProxy to Passenger Standalone an acceptable production deployment?

I have the need to deploy Rails 3 apps, using RVM and gemsets, and am expecting “public” traffic (i.e. this is not an internal-only app). I also must use Apache as the public interface to my app. I understand that Passenger Standalone can help…
davetron5000
  • 173
  • 4
4
votes
1 answer

Writing an upstart config file for Unicorn

I've had a good hunt and can't find a good example of an upstart script for Unicorn. From what I've read however I think that upstart and unicorn might step on each others toes if I just try to set up a basic upstart config file given that unicorn…
Brendon Muir
  • 243
  • 1
  • 6
4
votes
1 answer

502 Bad Gateway error after failed requests using Passenger

I've got a staging server running nginx 1.0.5 using Rails 3.1 under Passenger 3.0.9. The problem is that a request sent just after one where there's an application error return 502 Bad Gateway. To test it I've set up a simple controller with an…
Nicolas Buduroi
  • 275
  • 3
  • 11
4
votes
1 answer

How to achieve zero downtime with Passenger 3?

In the technology preview posts about Passenger 3 they discussed zero downtime: In Phusion Passenger 3 we’ve implemented zero-downtime web server restart. Phusion Passenger and the web server are restarted in the background, and while this…
arikfr
  • 369
  • 2
  • 5
  • 16