Setting Environmental Variables

Dear All,

I want to use ENV[‘MY_ENV_VARIABLE’] in my ruby scripts. In a rails
app where/how should I specify a value to this?

is it okay to put that in application.rb (in app/controller folder)

thanks and regards,

J

ace wrote:

Dear All,

I want to use ENV[‘MY_ENV_VARIABLE’] in my ruby scripts. In a rails
app where/how should I specify a value to this?

is it okay to put that in application.rb (in app/controller folder)

thanks and regards,

J

put the environment variable in environment.rb

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs