|
|
|
|
|
by gingerlime
4301 days ago
|
|
My first thought after reading the OP, was to link to your blog post[0]. It was a real eye-opener for us, and we stopped using this `if Rails.env.production?` (anti)pattern in favour of configuration. Much cleaner. 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... |
|