简体   繁体   English

DNSimple与Heroku无法正常工作

[英]DNSimple with Heroku not working

I am having a problem with my DNS server that has just come up. 我的DNS服务器出现问题。 I am following the OMR-One Month Rails tutorial. 我正在关注OMR-One Month Rails教程。 I don't quite understand how the whole DNS server thing works. 我不太了解整个DNS服务器的工作原理。

Only 1 out of 3 of my domains work, which is www.example.com. 我的3个域中只有1个可以工作,即www.example.com。 The naked domain (example.com) is not working and neither is example.heroku.com. 裸域(example.com)不起作用,example.heroku.com也不起作用。 Whenever I load these 2 addresses it DOES send me to heroku but I get the error message 每当我加载这2个地址时,它确实将我发送到heroku,但我收到了错误消息

We're sorry, but something went wrong. 我们很抱歉,但有些不对劲。

when I go to the terminal and type 'heroku domains' it shows that Heroku knows about all three domains. 当我进入终端并输入“ heroku domains”时,表明Heroku知道所有这三个域。

How exactly do I configure DNSimple/Heroku so that all 3 addresses work, or at least the naked domain works. 我如何精确配置DNSimple / Heroku,以便所有3个地址都能正常工作,或者至少是裸域有效。

Type ---- Name ---- Content 类型----名称----内容

CNAME ---- www.example.com ---- example.herokuapp.com CNAME ---- www.example.com ---- example.herokuapp.com

ALIAS ---- example.com ---- www.example.com 别名---- example.com ---- www.example.com

TXT ---- example.com ---- ALIAS for www.example.com TXT ---- example.com ---- www.example.com的别名

The DNS configuration is correct. DNS配置正确。 The error you are reading "We're sorry, but something went wrong." 您正在阅读的错误“很抱歉,出了点问题。” is returned by Heroku (or you app), is not a DNS error. 由Heroku(或您的应用)返回,不是DNS错误。

You need to debug what's causing your app to crash. 您需要调试导致应用崩溃的原因。

You can inspect the Heroku logs by running 您可以通过运行以下命令检查Heroku日志

$ heroku logs --tail

That will show you the most recent log entries generated by your application. 这将显示您的应用程序生成的最新日志条目。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM