Switching to settingslogic to manage our configuration. THE FILE FORMAT HAS...
Switching to settingslogic to manage our configuration. THE FILE FORMAT HAS CHANGED. OLD APP.YML AND APP_CONFIG.YML FILES WILL NOT WORK ANYMORE. Two important differences: 1. The app only looks in one file for settings: config/application.yml. If you want to override something, do it in that file. It is gitignore'd. If config/application.yml does not exist, or exists but is in the old format, you'll get a nice friendly set of instructions on how to convert your old file. 2. script/server settings are no longer in application.yml. They have their own settings file - copy config/script_server_config.yml.example to config/script_server_config.yml. This is also gitignore'd. script/server will print a message and exit if that file doesn't exist.
Showing
- .gitignore 3 additions, 1 deletion.gitignore
- Gemfile 1 addition, 0 deletionsGemfile
- Gemfile.lock 13 additions, 11 deletionsGemfile.lock
- app/models/app_config.rb 94 additions, 0 deletionsapp/models/app_config.rb
- config/application.yml.example 58 additions, 43 deletionsconfig/application.yml.example
- config/initializers/_load_app_config.rb 1 addition, 10 deletionsconfig/initializers/_load_app_config.rb
- config/script_server_config.yml.example 9 additions, 0 deletionsconfig/script_server_config.yml.example
- lib/app_config.rb 0 additions, 107 deletionslib/app_config.rb
- script/get_config.rb 28 additions, 21 deletionsscript/get_config.rb
- script/server 1 addition, 6 deletionsscript/server
- spec/config/config_spec.rb 0 additions, 18 deletionsspec/config/config_spec.rb
- spec/fixtures/config/old_style_app.yml 1 addition, 2 deletionsspec/fixtures/config/old_style_app.yml
- spec/lib/app_config_spec.rb 0 additions, 79 deletionsspec/lib/app_config_spec.rb
- spec/models/app_config_spec.rb 155 additions, 0 deletionsspec/models/app_config_spec.rb
Loading
Please register or sign in to comment