Socket
Book a DemoInstallSign in
Socket

dotenv-mh

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dotenv-mh

0.2.0
bundlerRubygems
Version published
Maintainers
1
Created
Source

Dotenv-mh

Dotenv-mh is a simple gem inspired on the classic dotenv and adapted to Rails framework following figaro approach for initialization (Rails::Railtie). Basically, it allows to load environment variables from a .env file when running on development. Once this gem is installed, your Rails application will automatically load your environment variables using a custom Rails::Railtie, so there is no need to modify the "config/application.rb".

Installation

Install the gem and add to the application's Gemfile by executing:

$ bundle add dotenv-mh

If bundler is not being used to manage dependencies, install the gem by executing:

$ gem install dotenv-mh

Execute Installer

Execute the following:

$ bundle exec dotenvInstaller  

The installer will create a ".env" file and add it to your .gitignore.

.env file

This follows the classic .env file structure, where each line represents a tuple of key-value.

# .env file
Variable1=value1
Variable2=value2
.....
AnotherVariable=AnotherValue

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/herreramaxi/dotenv-mh.

FAQs

Package last updated on 08 Nov 2022

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.