3340a2b091
The application name is used in the views, but also in the initializers and in the config/ directory According to rails doc (https://guides.rubyonrails.org/v6.0/configuring.html#locations-for-initialization-code), if we want to do some things before the initializers and the environment, the only place to do so is in config/application.rb
3 lines
243 B
Ruby
3 lines
243 B
Ruby
APPLICATION_NAME = ENV.fetch("APPLICATION_NAME", "demarches-simplifiees.fr")
|
|
APPLICATION_SHORTNAME = ENV.fetch("APPLICATION_SHORTNAME", "d-s.fr")
|
|
APPLICATION_BASE_URL = ENV.fetch("APPLICATION_BASE_URL", "https://www.demarches-simplifiees.fr")
|