motion-environment-settings
Create application settings that swap for a variety of environments.
Installation
Add this line to your application's Gemfile:
gem 'motion-environment-settings'
And then execute:
$ bundle
Usage
Create a YAML file of the settings you want configured by environment.
Example:
development.yml
api_host: http://localhost
production.yml
api_host: http://productionurl
By default, motion-environment-settings
will look for these files in your/app/root/config/environments
. You can customize this path by setting
Motion::EnvironmentSettings.config_path = "your/custom/path"
in your Rakefile.
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request