Heroku和Zerigo设置问题 [英] Heroku and Zerigo Setup Issue

查看:154
本文介绍了Heroku和Zerigo设置问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

EDIT2:等待我的更改是否成功。






编辑:I使用命令行Zerigo install命令重新安装了所有内容(原始问题用于手动设置)。现在的问题是:我设置的自定义域无法正常工作。访问自定义域名只会在Chrome中返回一个错误:糟糕!Google Chrome无法找到www.myapp.com,即使我添加的自定义域为www.myapp.com?






我一直试图通过在 https://devcenter.heroku.com/articles/custom-domains https://devcenter.heroku.com/articles/zerigo_dns



在设置域的教程上Zerigo添加主机的指令之一是添加网络服务器的IP地址,我该如何去寻找这些信息?我无法找到任何资源来帮助我。



我应该在 _ .herokuapp.com上添加我的应用程序的IP地址吗?当我尝试查找此地址时,我从未获得ac地址一致(可能是因为Heroku的许多服务器)。任何帮助表示赞赏。

解决方案

连接Zerigo和Heroku是一个三步过程。 (1)使用 heroku addons:添加zerigo_dns:basic 命令或通过附加组件手动添加Zerio (2)与您的注册商或托管服务提供商合作解决域名问题。对于Zerigo添加所有名称服务器:

a.ns.zerigo.net



b.ns.zerigo.net

e.ns.zerigo.net



c.ns.zerigo.net



d.ns.zerigo.net



<3>这是我认为您可能会错过的一步。通过Heroku配置面板下的附加组件登录到Zerigo,或直接登录到Zerigo。选择帐户和服务器旁边的DNS选项卡。在左侧面板中选择您要解析为Zerigo的域名:此域名将出现。在此域中的主机旁边的名称服务器下单击添加代码段。添加推荐的片段proxy.heroku.com和排除www的重定向记录。



等待TTL期限(通常15分钟),您的域名将按预期工作。


EDIT2: Waiting to see if my changes were successful.


EDIT: I reinstalled everything using the command line Zerigo install command (the original question was for manual setup). THe problem now: the custom domains I set up do not work properly. Visiting the custom domain simply returns an error in Chrome: "Oops! Google Chrome could not find www.myapp.com" even though the custom domain I added was "www.myapp.com?


I've been trying to set up a custom domain on my Cedar Heroku app by following instructions at https://devcenter.heroku.com/articles/custom-domains and https://devcenter.heroku.com/articles/zerigo_dns.

In the tutorial for setting up a domain on Zerigo, one of the instructions for adding a host is to add the IP address of the webserver. How do I go about finding this information? I'm having trouble finding any resource that helps me with this.

Am I supposed to be adding the IP address of my app at _.herokuapp.com? When I try to do a look up of this address, I never get a consistent address (probably because of Heroku's many servers). Any help is appreciated.

解决方案

Linking Zerigo and Heroku is a three step process.

(1) Use the heroku addons:add zerigo_dns:basic command or add Zerio manually through the add-ons page on your Heroku app.

(2) With your registrar or hosting provider to have the domain resolve properly. For Zerigo add all nameservers:

a.ns.zerigo.net

b.ns.zerigo.net

e.ns.zerigo.net

c.ns.zerigo.net

d.ns.zerigo.net

(3) And this is the step I think you may be missing. Log into Zerigo either through your Heroku configuration panel under "add-ons" or log into Zerigo directly. Select the DNS tab next to Account and Servers. On the left panel select the domain you have resolving to Zerigo: this domain will appear. Within this domain under "Nameservers" next to "Hosts" click "Add Snippet". Add both the recommended snippets proxy.heroku.com and the redirect record that excludes the www.

Wait the TTL period (usually 15 minutes) and your domains will work as expected.

这篇关于Heroku和Zerigo设置问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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