Deploying to Heroku with custom domain [closed]

2019-02-18 22:00发布

I have run the app from from the My-app.heroku.com and it works, and I have set up the DNS between my domain but whenever I open my app from the domain I have specified, heroku says "Refer to the documentation if you need help deploying."

I've looked at the documentation a few times but I don't get it.

What step am I missing?

1条回答
▲ chillily
2楼-- · 2019-02-18 22:23

Have you added the custom_domain add-on?

heroku addons:add custom_domains

Then tell heroku what domain you want

heroku domains:add www.yoursite.com
heroku domains:add yoursite.com

You said you already handled the DNS steps, so once you run those commands, you should be good to go.

I believe the relevant documentation is here: http://devcenter.heroku.com/articles/custom-domains

查看更多
登录 后发表回答