Open onaseef opened 12 years ago
In heroku console:
>> domain = Domain.find_by_host 'example.com'
>> hclient = Heroku::Client.new('', ENV['HEROKU_API_KEY'])
>> hclient.remove_domain Rails.application.config.heroku_app_name, domain.host
>> domain.delete
How do I get to a heroku console? I followed these instructions: https://devcenter.heroku.com/articles/console#interactive_console_sessions
And here's what I got:
omba:yomobi Omar$ heroku run console
No app specified.
Run this command from an app folder or specify which app to use with --app
omba:yomobi Omar$ heroku run console --app yomobi-test Running console attached to terminal... up, run.1 bash: console: command not found omba:yomobi Omar$
Oh sorry, I assumed you already knew. It's:
$ heroku console --app yomobi-test
Is there a mechanism in place by which I can query by URL to see which company has the URL associated with it in case I need to disassociate a URL with a company?