我正在尝试将自定义域添加到两个 Heroku 应用程序,但它不起作用。我以前做过,没有问题。
在 Heroku 网站上,我添加了 Zerigo DNS(在附加组件部分),然后添加了域名。在 Godaddy 上,我将名称服务器更改为
a.ns.zerigo.net
b.ns.zerigo.net
c.ns.zerigo.net
d.ns.zerigo.net
e.ns.zerigo.net
我昨天(24 小时前)这样做了。它总是在两个小时前工作。
我知道还有一种方法可以通过控制台添加自定义域。当我尝试这样做时
heroku addons:add custom_domains:basic
即使我可以在互联网上实时查看应用程序(只是一个博客),我也会收到“找不到应用程序”的响应。
在我得到的评论中更新尝试建议
heroku addons:add custom_domains:basic --app hollow-cloud-8495.heroku.com/
Adding custom_domains:basic to hollow-cloud-8495.heroku.com/... /Users/michael/.rvm/gems/ruby-1.9.3-rc1@ruby193/gems/heroku-api-0.2.4/lib/heroku/api.rb:64:in `rescue in request': undefined method `response' for #<Excon::Errors::StubNotFound:0x000001028649a0> (NoMethodError)
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1@ruby193/gems/heroku-api-0.2.4/lib/heroku/api.rb:59:in `request'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1@ruby193/gems/heroku-2.26.5/lib/heroku/auth.rb:29:in `request'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1@ruby193/gems/heroku-api-0.2.4/lib/heroku/api/addons.rb:34:in `post_addon'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1@ruby193/gems/heroku-2.26.5/lib/heroku/command/addons.rb:76:in `block in add'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1@ruby193/gems/heroku-2.26.5/lib/heroku/helpers.rb:232:in `action'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1@ruby193/gems/heroku-2.26.5/lib/heroku/command/addons.rb:75:in `add'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1@ruby193/gems/heroku-2.26.5/lib/heroku/command.rb:176:in `run'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1@ruby193/gems/heroku-2.26.5/lib/heroku/cli.rb:9:in `start'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1@ruby193/gems/heroku-2.26.5/bin/heroku:17:in `<top (required)>'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1@ruby193/bin/heroku:19:in `load'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1@ruby193/bin/heroku:19:in `<main>'