Here is how I did it from scratch.
Step 1: Setting Up Heroku and Godaddy
The first step is adding the GoDaddy domain to the Heroku app. Login to heroku and navigate to the app settings, under domain section click on "Add domain" then type "www.yourdomain.com" & "yourdomain.com". The domain name is the one purchased from GoDaddy.
Step 2: Setup cloudflare
Go to cloudflare, add a domain you want to point via cloudflare (domain added in step 1).When you add domain cloudflare will automatically fetch all the sever records and provide you with NS.Addiotnally point heroku via CNAME/ANAME to heroku app.
Step 2: Copy NS from godaddy to cloudflare
Log into GoDaddy account and go to your domain detail page.The domains details page will show all the DNS related to the domain name.Copy NS from step 2 (cloudflare) & paste it in godaddy under custom NS option.
That's all.
Comments
Post a Comment