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
3
votes
1 answer

Configuring Nginx, Thin and Rails. Can access static pages but not dynamic

I have set up nginx (nginx.conf below) and thin. Both nginx and thin (2 servers) are running (I have checked they are running). I can access a static page in the rails public directory such as index.html but if I put in any other url I get a 500…
ajeetdl
  • 141
  • 5
3
votes
2 answers

Need to move a debian server from i686 to x86_64 architecture

I have a debian server that I need to move from one hosting provider to another. I don't really know how the old server was setup, all I know is that it's running a Ruby on Rails application with a lot of custom libraries installed and that I should…
Max
  • 3,523
  • 16
  • 53
  • 71
3
votes
1 answer

Nginx and Unicorn on separate machines

I've got a pretty standard Rails application running with Unicorn and Nginx all on one box. I'd like to split off the application itself and have Nginx on one machine and Unicorn (with the Rails app) on another machine. The idea here being that…
cmhobbs
  • 267
  • 1
  • 3
  • 12
3
votes
1 answer

Error when trying to install RVM on my VPS

I'm working on deploying my first rails app to my mediatemple(dv) and i'm first trying to install RVM using this command: bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer) and I get the following…
Catfish
  • 237
  • 2
  • 11
3
votes
1 answer

gem environment and $GEM_PATH not updating when using rvm

I'm trying to upgrade ruby and rails gem on a server with cPanel, to do this I installed rvm and I successfully installed different versions of ruby... great stuff! Having a problem though, the server seems to be ignoring which gemset to use. After…
Abe Petrillo
  • 133
  • 2
  • 10
3
votes
1 answer

Passenger + Rails + Global Queues - Can you direct specific requests to specific queues?

I have a site with a relatively low amount of traffic that's normally served happily by 3 or 4 passenger instances. However, sometimes it is getting hammered by a large number of automated requests that can take up to 15-20 seconds to completed.…
Dave Smylie
  • 141
  • 1
  • 7
3
votes
2 answers

How can I secure files on S3?

I want to control who can download a file via an app (as if it was held on the local FS). What's the right approach for doing this, considering S3 can't be mounted as a POSIX compliant file system?
chrism2671
  • 2,579
  • 9
  • 34
  • 45
3
votes
1 answer

Recommendations for hosting Rails on Amazon EC2?

There are a number of solutions for easily hosting Rails on Amazon EC2 like the following Poolparty Rubber Amazon Cloud Formation Opscode Chef Rolling your own (and I'm sure others I'm not aware of) and I'd love some guidance on which route to…
ToddH
  • 193
  • 4
3
votes
1 answer

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 with a potential stack for scalability. I'm no…
3
votes
3 answers

How much memory per Apache connection?

Our client has a Ruby on Rails app that is mostly client-based (i.e, very little processing in controllers and views), with Apache and Passenger in the server stack. We see each connection takes about 2MB per user connection. Is this reasonable, or…
Crashalot
  • 177
  • 3
  • 11
3
votes
1 answer

Where does Varnish usually go in a Rails web stack?

I have a production Rails application deployed on Unicorn with nginx in front for static file serving. I now need some features of Varnish and I'm wondering how to introduce it. Some people put Varnish in front while others put nginx in front. I…
wormcontrol
  • 31
  • 1
  • 2
3
votes
4 answers

Excessive hosting costs

A client of mine is getting billed around ~$1400 per month for hosting. However the site is only averaging roughly 200 hits per day and it serves no large files nor videos. It's hosted with http://www.engineyard.com/ and I've looked at the bill…
K-Bear
  • 131
  • 4
3
votes
3 answers

Can you stream an mp3 file with nginx?

I have a Ruby On Rails application running on Nginx which is serving out MP3s using JW player. I need to be able to set the start time and duration for playlist items. From what I can tell to do this I need be streaming the MP3 files. How can I…
bwizzy
  • 1,295
  • 4
  • 14
  • 17
3
votes
2 answers

Apache Passenger with Rails 3 Environment?

I'm running a new Rails 3 app through Apache Passenger, and am trying to run it in the stage environment. I have my configuration file set up properly according to the documentation as well as previous Apache Passenger apps, but I can't get it to…
Mike Trpcic
  • 215
  • 1
  • 2
  • 6
3
votes
4 answers

Set environment variables for rails app hosted in nginx/passenger

How do I set environment variables so that they are available to my rails app hosted inside nginx/passenger?