Skip to content

Instantly share code, notes, and snippets.

@jordelver
Created June 1, 2012 15:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jordelver/2852880 to your computer and use it in GitHub Desktop.
Save jordelver/2852880 to your computer and use it in GitHub Desktop.
Quick 'n' dirty bulk domain add to Heroku
example.com
example.org
example.net
#!/usr/bin/env ruby
#
# Change <appname> to the actual app name
#
# ./heroku-bulk-add-domain.rb /path/to/domains.txt
#
ARGF.readlines.each do |domain|
`heroku domains:add #{domain.chop} --app <appname>`
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment