Setting Paths Dependent on Environment

I need to set a path depending if I am on my development box of
production server. How can I set variables that our dependend on
environment? :slight_smile:


John K.
[email protected]

http://www.kopanas.com

http://www.soen.info

On Tue, Sep 19, 2006 at 07:28:03PM -0400, John K. wrote:

I need to set a path depending if I am on my development box of
production server. How can I set variables that our dependend on
environment? :slight_smile:

do you mean something like
my_variable = RAILS_ENV == ‘test’ ? ‘in test mode’ : ‘not in test mode’

Jens


Jens Krämer
[email protected]

On 9/20/06, Jens K. [email protected] wrote:

Jens

You can also define a constant in the .rb files in the environment/
directory.

E.g in development.rb:

module EnvironmentSpecific
Variable=“Set for Development”
end

and in production.rb:

module EnvironmentSpecific
Variable=“Set for Production”
end

Max