Adding a Custom Domain Name

As I would like to use my portfolio site in future applications, graduate employmentetc. I wanted to add my own domain name to my heroku application as this would make finding my website easier for employers and would more professional than using the generated domain name that Heroku assigned to my app.

I already owned a domain name which was being used on a more basic portfolio site that I had made previously on Adobe Portfolio. As the website I am building in Atom shows my web design/development skills this will be more impressive to employers as it is more original and shows off my personality.

I originally purchased my domain name on GoDaddy.com and therefore had to change my DNS settings so that this name pointed towards my Heroku app rather than my previous website.
I began by logging into Heroku and connected my domain name to my app which then gave me a DNS Target.



After researching what to do next, I came across a five year old post from a user named 'mikestone14' on github.com. After reading this post, I changed my CName to point at the DNS target that heroku gave me as well as changing my A to point to the IP Address suggested in the post (50.63.202.1).



Once completed, I used the terminal to add my domain name to my heroku app and as the DNS provider was already pointing to the correct target I proceeded to host this domain name. When typing in this url (http://www.sofiagattuso.co.uk) into a browser my website was running successfully.



Unfortunately after testing this when the url http://sofiagattuso.co.uk or https://www.sofiagattuso.co.uk is entered, my website does not load and brings up an error saying that it cannot connect to the server.


I thought of adding a subdomain so that when someone types in http://sofiagattuso.co.uk this will re-direct to http://www.sofiagattuso.co.uk which would cause my site to load.

After speaking to the support team at GoDaddy, they explained that the best way to get this to work would be by pointing my A record to the IP Address of my site. I looked into heroku support pages which explained that they did not use a static IP and therefore using the A record wouldn't be possible. 

(Heroku Help, n.d.)
As my bootstrap template used a shopping cart etc. most browsers think that my website isn't secure and therefore would need to purchase an SSL certificate to solve this and https:// would then work.


Bibliography
mikestone14. (2013) Pointing a GoDaddy domain to a Heroku app. [Online] n.d. Available from: https://gist.github.com/mikestone14/11198630. [Accessed: 13th December 2018].
HEROKU HELP. (n.d.). My root domain isn’t working, what’s wrong?. [Online] Available at: https://help.heroku.com/NH44MODG/my-root-domain-isn-t-working-what-s-wrong [Accessed: 13th December 2018]

Comments

Popular posts from this blog

Unity Project 4: Ball platformer game

[Research] Traditional Poster Design (4CTA1214)