Created
March 3, 2016 22:57
-
-
Save glennfu/aafd03c21748ee265a5a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export S3_ENABLED=true | |
export THIS_THING="asdf" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# initializers/pow.rb | |
# originally found at this url which no longer exists: | |
# http://sanguinerane.com/auto-load-powenv-environment-variables/ | |
# Load pow environment variables into development and test environments | |
if File.exist?(".powenv") | |
IO.foreach('.powenv') do |line| | |
next if !line.include?('export') || line.blank? | |
key, value = line.gsub('export','').split('=',2) | |
ENV[key.strip] = value.delete('"\'').strip | |
end | |
end if Rails.env.development? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment