Heroku No Such App While Using a Sub domain - heroku

I am trying to point a custom domain as a CNAME at my heroku app. My domain is heroku.mikelyons.org and I have it pointed at mikelyons.herokuapp.com.
$ host heroku.mikelyons.org
heroku.mikelyons.org is an alias for mikelyons.herokuapp.com.
mikelyons.herokuapp.com has address 54.243.121.176
$ host mikelyons.herokuapp.com
mikelyons.herokuapp.com has address 54.243.121.176
$ heroku domains
=== mikelyons Domain Names
heroku.mikelyons.org
mikelyons.herokuapp.com
www.heroku.mikelyons.org
I added these domains with domains:add. But when I go to heroku.mikelyons.org I get a: "Heroku | No such app" page. What am I missing?

That all looks ok, there have been API issues this morning with Heroku which could explain the problem. I'd put it down to that.
UPDATE: But it looks like it's working now ;)

Related

Is there some way to get app name when running in heroku?

I do a project that runs in heroku.
I try to oprate the app's config bt itself, that need the app name or id and the API key of Heroku.
Now I read the app name from xxxxx.herokuapp.com, but it will not work when using custmer domain.
So, is there some way to know 'who am I' in heroku?
https://devcenter.heroku.com/articles/dyno-metadata
heroku labs:enable runtime-dyno-metadata -a <app name>
The information you need will be available through the environment variable $HEROKU_APP_NAME

Set domain alias with Heroku

There is a facility in Openshift to assign alias using the command line tool:
rhc alias add myapp www.somwhere.com
Having to point a domain www.somewhere.com's CNAME to myapp-mynamespace.rhcloud.com would be enough to make access to www.somewhere.com go to the Openshift app.
I want to know if there is a facility in Heroku for this?
Answer is yes, https://devcenter.heroku.com/articles/custom-domains
$ heroku domains:add www.example.com

heroku app not found when adding a domain

I would like to add a domain whatever.com to a heroku app that I collaborate on named whatever. When I type $ heroku domains it gives ! App not found.
How can I set the app I want to use, and then have it use $ heroku domains:add whatever.com?
Make sure you're in a directory that is linked to a herkou app if you want to issue commands without specifying an app name. Alternatively, you can add the --app= parameter to your command to explicitly specify the app you want the heroku command to run on.
$ heroku domains:add whatever.com --app=whatever

Domain has already been taken

I have an app on Heroku.
I am trying to do the steps from this tutorial so that my Application has a recognizable domain name.
When I enter the following command (with my own domain) :
heroku domains:add www.example.com
I receive this error message :
Adding www.example.com to fierce-escarpment-8305... failed<br/>
! Domain has already been taken
I don't understand what that means. I cancelled my account on my other hosting service so that I could free my domain name and I reseted my infos with my domain provider so that my domain points to a temp page.
Ok ! So I now understand (I think) what I had to change on my domain provider site. I think my infos are now correct, because I don't have the "! Domain has already been taken" error message.
Now, I have this message :
»heroku domains:add www.math-moi.com
! No app specified.
! Run this command from an app folder or specify which app to use with --app
» heroku domains:add www.math-moi.com --app heroku-fierce-escarpment-8305
Adding www.math-moi.com to heroku-fierce-escarpment-8305... failed
! App not found
Can anyone tell me what I am doing wrong ?
»heroku domains:add www.math-moi.com --app heroku-fierce-escarpment-8305.herokuapp.com
Adding www.math-moi.com to heroku-fierce-escarpment-8305.herokuapp.com... failed
! Resource not found
Still having the error message ...
»heroku domains:add www.math-moi.com --app fierce-escarpment-8305<br/>
Adding www.math-moi.com to fierce-escarpment-8305... failed<br/>
! Domain has already been taken
Try using the domain that you own. The domain example.com is already claimed by someone else and multiple accounts cannot be assigned to the same domain.
heroku domains:add www.example.com
should become:
heroku domains:add www.YOURDOMAINHERE.com

Heroku CLI: How to reference an app by custom domain? (Example in documentation not working)

Heroku's documentation on CLI says to do this (link):
If you have multiple heroku remotes or want to execute an app command outside of a local working copy, you can specify an explicit app name, domain, or git remote as follows:
$ heroku info --app myapp
$ heroku info --app www.example.com
$ heroku info --remote staging
However, I'm unable to get that second one to work. This is what I get:
$ heroku info --app foo
=== foo
[...]
$ heroku domains --app foo
Domain names for foo.herokuapp.com:
foo.example.com
$ heroku info --app foo.example.com
! Resource not found
At the very least, the documentation seems incorrect. But is it possible to reference an app by one of its custom domains another way?
Thanks!
Yep, I concur that - using the latest Heroku CLI all the methods work except using the domain name. Is there a particular reason why you want to use that way if the other ways work for you?

Resources