Giter VIP home page Giter VIP logo

portfoliov2's Introduction

Personal site

Visit site. This is where I store the code for my personal site for now.

Initially I had hosted it using herokuapp with a node.js framework, thinking to add routing. However, herokuapp limits your app active time and only wakes it up when the url is visited in a 30 minute window. Read more about heroku's policies for free hosting here.

As of Dec 29, "When it idles (automatically, after 30 minutes of inactivity), or when you scale it down, your app will stop consuming dyno hours." What this means, is that after at least 30 minutes, your site becomes inactive, and requires a long initial load time, in my experience. That's not something your visitors would like; Github pages are pretty fast on the other hand.

I used namecheap.com to purchase the domain, and that is also where I made adjustments to the advanced DNS settings.

If you are keen to find out how to use a custom domain for your github page hosting, I have added some pictures below to show you my current configuration.

  • Disclaimer: There may be more updated and official resources out there such as this documenting how to host between your domain site and github. It's best to do your own homework and follow those instead :)

Namecheap settings

Let's log in to your namecheap account, then locate your domain under Domain List. Click Manage beside it >> Advanced DNS.

You will need to change the settings under Host Records.

  • Type 'A record' with Host '@' and Value '192.30.252.153'
  • Type 'A record' with Host '@' and Value '192.30.252.154'
  • Type 'CNAME record' with Host 'www' and Value 'username.github.io'.
  • Remember TTL is set to Automatic. It means Time To Live, though I'm not sure how it really affects the uptime.

Namecheap settings

Github settings

This part's easy. Navigate to your github repository >> Settings >> Scroll down to Github Pages >> adjust custom domain to 'yourdomainname.com'. Once you have done so, this automatically creates a corresponding CNAME file in your root directory of the git repo.

I also assume you have already hosted the project on github pages. If you have not, adjust source to master branch >> Save.

Github pages settings

Tip

It takes a while for the settings to take effect. In my experience with Namecheap, they had a live helpdesk which you can consult with. One of their representatives shared this hot tip with me - use Kproxy.

If your website is still not accessible via domainname.com, enter that into Kproxy, and it will show up the website display as if propagation has taken place ONLY IF you have set this up correctly. The CSS seems to be messed up when visiting through this proxy, but at least it gave me peace of mind to not wait in vain.

portfoliov2's People

Contributors

itsgabrielu avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.