Project

local-env

0.0
No commit activity in last 3 years
No release in over 3 years
Ruby on Rails engine to easily add values to ENV from a configuration yaml file
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

local-env manages your local ENV

When deploying on Heroku, it's useful to put various sensitive values (like your AWS or Facebook credentials) in the environment's config variables. But what about locally? The local setup options Heroku suggests are terrible.

Manage your config variables in YAML

It's super easy. Just write them out in config/local-env.yml:

AWS_ACCESS_KEY: 2hsjckh2hsjhzjh3hzh
AWS_SECRET_KEY: hkskdjkjsjfiud9uweirjk234jrihfsd

Or, if you like, namespace them by environment:

development:
  FOO: value
  BAR: another value
test:
  FOO: test value
  BAR: another test value

Keep your file out of your repo

Add config/local-env.yml to your .gitignore and it won't be deployed to Heroku or live in your repository for prying eyes. Now your secrets are safe.

Installation

In your Gemfile:

group :test, :development do
  gem 'local-env
end