开发者

Storing configuration variable in ruby on rails

开发者 https://www.devze.com 2023-01-20 05:21 出处:网络
I\'m storing configuration variables for different environments in the product开发者_高级运维ion.rb and development.rb

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

精彩评论

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