-passes keys into a project from the env file
- when you want to keep things private
- (example:TWITTER API)
- has info about your personal account that you don't want exposed on Git or GitHub
-
in TERMINAL touch .env touch Procfile
-
on ENV file:
TWITTER_KEY = "key"
-
on .rb file
#{ENV["TWITTER_KEY"]"
-
on .gitignore
.env
-
in terminal
foreman run ruby sin.rb
in terminal
- cd myapp
- heroku config:set TWITTER "keys"