开发者

Storing configuration variable in ruby on rails

I'm storing configuration variables for different environments in the product开发者_高级运维ion.rb and development.rb

production.rb

ENV['my_variable'] = 'val1'

development.rb

ENV['my_variable'] = 'val2'

Maybe exists another way to store variables for different environments. What is the best way?


I've been pointing people towards the settingsgem lately. Settings Gem

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜