Project

env_rails

0.0
No commit activity in last 3 years
No release in over 3 years
Set Rails configuration parameters using environment variables
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.7
~> 10.0
 Project Readme

EnvRails

Set Rails configuration parameters using environment variables

Installation

Add this line to your Rails application's Gemfile:

gem 'env_rails'

And then execute:

$ bundle

Usage

This gem is a Railtie plugin. It doesn't require any special configuration.

When the Rails application starts it will pick up any environment variable matching a name like RAILS_CONFIG__foo__bar and apply the value to the corresponding Rails configuration.

For example:

RAILS_CONFIG__action_mailer__smtp_settings__address=smtpserver.yourdomain.com

Contributing

  1. Fork it ( https://github.com/manastech/env_rails/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request