Can I use Heroku to host a web app on a path of my custom domain?

北城余情 提交于 2021-02-08 10:14:58

问题


I have a personal website currently hosted on Weebly and the domain was bought on NameCheap. I'm creating a little flask web app that just displays a graph/table and I'm most likely going to use Heroku to deploy it. Is there anyway that I can make the web app display whenever someone visits a specific path of my domain?

I guess I could just redirect to the url provided by heroku, but I would rather have it on my domain.


回答1:


Short answer: Yes. There is an article explaining how to do this here: https://devcenter.heroku.com/articles/custom-domains . Basically, you need to add the custom domain to heroku (in the dashboard: settings -> domains) and reconfigure the DNS of the target domain so that it will resolve to your heroku app.



来源:https://stackoverflow.com/questions/21446940/can-i-use-heroku-to-host-a-web-app-on-a-path-of-my-custom-domain

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