Skip to content

Instantly share code, notes, and snippets.

@shavit
Created October 12, 2014 11:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shavit/2fe08a6ec08b3cfdc649 to your computer and use it in GitHub Desktop.
Save shavit/2fe08a6ec08b3cfdc649 to your computer and use it in GitHub Desktop.
#
# If you are working with the foreman gem and .env files, you are probably need to load
# the environment varialbes from the .env file.
#
# Load the environment variables from the .env file in development.
open('.env', 'r').readlines.each {|l| kv = l.split('='); ENV[kv[0]] = kv[1];}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment