Connect Heroku Application with my GoDaddy Domain [closed]

回眸只為那壹抹淺笑 提交于 2020-01-07 05:26:05

问题


I've set up a application on Heroku and have also purchased a domain from GoDaddy.

I searched on Google how to connect my domain to Heroku and I also read the Heroku documentation but I am not able to connect it with my domain.

I am a beginner and have found I need to add cname or domain may be but I don't know how to do it. How can I connect my domain with the heroku app? I need to add DNS on my domain but how to add it?

Please let me know very very basic and detail step by step procedure to connect my domain with the Heroku app please.


回答1:


Possible duplicate.. As per the user request we do ...

There are 2 steps you need to perform,

Add the custom domains addon and add the domain your going to use, eg www.mywebsite.com to your application, Running below command to perform this task

heroku domains:add www.example.com

Go to your domain registrar control panel and set www.mywebsite.com to be a CNAME entry to yourapp.herokuapp.com assuming you are using the CEDAR stack.

just put www in value and target is your heroku app like yourname.herokuapp.com




回答2:


Heroku provides detailed instructions in the Custom Domains support page.



来源:https://stackoverflow.com/questions/24703155/connect-heroku-application-with-my-godaddy-domain

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!