部署的heroku应用未显示在自定义域上 [英] Deployed heroku app not showing up on custom domain

查看:82
本文介绍了部署的heroku应用未显示在自定义域上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为我的heroku应用程序设置了一个自定义域,该域可以正常工作(这里什么都没有"). 然后,我将应用程序的第一个版本部署到了Heroku,并尝试通过自定义域进行访问,但仍然收到消息这里还没有东西". 部署成功,可以通过 appname .herokuapp.com访问该应用.

I set up a custom domain for my heroku app, which worked ("Theres nothing here, yet"). I then deployed my first version of the app to heroku and tried to access it via the custom domain, but still got the message "Theres nothing here, yet". The deployment was successful and the app can be reached via appname.herokuapp.com.

如何将其显示在我的自定义域上?

How do I get it to show up on my custom domain?

推荐答案

今天早上我遇到了同样的问题,但是设法解决了.

I had the same issue this morning but managed to resolve it.

我通过heroku仪表板(网页)的设置菜单添加了自定义域,然后通过我的DNS提供商(GoDaddy)将heroku DNS目标添加到了CNAME记录中.几分钟后,DNS目标URL指向紫色的此处尚无内容"页面. 10或15分钟后,我的自定义域名也指向了该域名,但没有我的应用程序的迹象.

I added my custom domain via the settings menu of the heroku dashboard (web page) and then added the heroku DNS target to a CNAME record with my DNS provider (GoDaddy). After just a few minutes the DNS target URL was pointing to the purple "There's nothing here, yet" page. 10 or 15 minutes later my custom domain name was also pointing there, but no sign of my app.

研究此问题后,我转到了您的帖子,也转到了 https://support. dnsimple.com/articles/heroku-error-nosuchapp/

Researching the issue led me to your post and also to https://support.dnsimple.com/articles/heroku-error-nosuchapp/

按照页面底部的说明,我使用heroku命令行添加了自定义域的"www"版本.

Following the instructions at the bottom of the page I used the heroku command line to add a 'www' version of my custom domain.

heroku domains:add www.example.com

此后,我的应用立即显示在我的自定义域中.我什至不需要将第二个DNS目标添加到我的DNS提供商.它只是工作.

Immediately after this my app showed up at my custom domain. I didn't even need to add the 2nd DNS target to my DNS provider. It just worked.

奇怪的是,将浏览器直接指向DNS目标URL无效.

Curiously, pointing my browser directly at the DNS target URLs does not work.

这篇关于部署的heroku应用未显示在自定义域上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆