Guest User

Untitled

a guest
Jan 22nd, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1.  
  2. # ruby set_heroku_config.rb | bash
  3.  
  4. vars = []
  5. File.open('prod.config').each do |line|
  6. key, val = line.chomp.split('=')
  7. next unless val
  8.  
  9. vars << "#{key.sub(/export /, '')}=#{val.gsub(/'/, '')}"
  10. end
  11.  
  12. command = "heroku config:add " + vars.join(' ')
  13.  
  14. puts command
Add Comment
Please, Sign In to add comment