Heroku Custom Domain Not Working

前端 未结 3 1434
难免孤独
难免孤独 2020-12-28 21:43

What is the correct way to connect a Heroku app with a custom domain?

This is how I did it in the past:

  1. Point Godaddy\'s DNS to heroku\'s provided t

3条回答
  •  不知归路
    2020-12-28 22:05

    I kept skipping this step because the custom domain already showed up in my Heroku app. Ran this and it started working.

    heroku domains:add www.yourwebsite.com
    

    Bonus: Want every page to be secure SSL? Use this awesome NPM package https://www.npmjs.com/package/force-ssl-heroku

提交回复
热议问题