问题
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