Socket
Book a DemoInstallSign in
Socket

env_rails

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

env_rails

0.3
bundlerRubygems
Version published
Maintainers
1
Created
Source

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

  • Fork it ( https://github.com/manastech/env_rails/fork )
  • 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 a new Pull Request

FAQs

Package last updated on 30 Jan 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.