Custom domain does not work on Heroku app url

时间:2018-09-22 22:59:36

标签: node.js express github heroku terminal

I am trying to link my heroku app to my domain. The image below shows that my heroku is pointing my my domain

https://pbs.twimg.com/media/Dnu7GK_UcAAd7vE.jpg:large

but when you visit my domain

https://cleveroscar.com

it loads up my markdown file instead of my app,

but on my heroku url the app is working perfect

https://young-castle-28382.herokuapp.com/

I am a self-taught developer so please excuse my unprofessional questions

1 个答案:

答案 0 :(得分:0)

这是将主机指向域名的正确方法 你做了吗?

 heroku domains:add example.com

    heroku domains:add www.example.com

    heroku domains:add *.example.com

这是从heroku端指向您的域名

这是一个YouTube视频,可简化操作https://www.youtube.com/watch?v=kKGSGT7mSnQ&t=29s

请告诉我这是否有效