(no title)
dhh | 11 years ago
Then you can centralize all your configuration in config/environments/* and config/initializers/. The best practice being that you set the configuration in config/environments/ and you read that configuration point and do something with it in config/initializers/*.
IMO, much nicer than messing with ENVs.
gingerlime|11 years ago
I think a key aspect to make this successful is to make configurations 'inherit' from each other (as you explained on the post, using `require Rails.root.join("config/environments/production")`). It really makes our staging environment configuration only very slightly different from production and is very DRY.
[0] https://signalvnoise.com/posts/3535-beyond-the-default-rails...
kassemi|11 years ago