config/application.rb
config/environment.rb
before the initialize!
call (we don't usually edit this file)environments/production.rb
config/initializers/*.rb
config/environment.rb
after the initialize!
call (we don't usually edit this file)app
config/preinitializer.rb
(if it exists)environment.rb
, code above the Rails::Initializer.run
block (put constants here if you want to override them in environments)environment.rb
, the Rails::Initializer.run
blockenvironments/production.rb
config/initializers/*.rb
Rails::Initializer
blockConsider reading the Rails initialization process guide Show archive.org snapshot for a deep dive into the initialization process.