onaseef / yomobi

YoMobi Mobile Builder Platform
http://www.yomobi.com
2 stars 2 forks source link

Question about Managing Domains #400

Open onaseef opened 12 years ago

onaseef commented 12 years ago

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?

gilbert commented 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
onaseef commented 12 years ago

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$

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$

gilbert commented 12 years ago

Oh sorry, I assumed you already knew. It's:

$ heroku console --app yomobi-test