Dealing with Ruby Environments

Posted by matt, Thu Dec 06 07:12:00 UTC 2007

So I have started to get into working on this site as well as starting to do a bit more development work and I realised that this site is running particularly slow. The next few blog posts will be in relation to configuring ruby sites for use on web servers.

This first one is to do with setting the correct ruby environment. This is done by setting the correct ruby environment variable into the config/environment.rb file with the following line.

ENV['RAILS_ENV'] ||= 'production'

After this, you will need to restart the webserver application or by killing all of the dispatch.fcgi processes.

 

God bless,

Matt.

Filed Under: | Tags: development rubyonrails server

Comments