Skip to content

Instantly share code, notes, and snippets.

@jney
Created August 8, 2012 12:43
Show Gist options
  • Save jney/3294831 to your computer and use it in GitHub Desktop.
Save jney/3294831 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
filename = case ARGV.size
when 0 then '.env'
when 1 then ARGV.first
else raise 'Too much arguments'
end
envs = File.read(filename).split("\n").join(" ")
exec("heroku config:add #{envs}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment