Why and How I Moved My Blog To Netlify
Dec 9, 2018
I have just recently moved my blog from Vultr to Netlify because I was lured by:
- Free and easy to setup CI/CD. Just click one button and its all setup!
- Free (unlimited?) CDN hosting! They actually called it ADN with a nice graph to compare.
- Auto assets optimization like minifying asset files and lossless image compression.
- Form handling and Lambda functions integration. I haven’t need to use these yet, but the fact that they are available is exciting. Oh, the possibilities!
- If you use a static site generator, they offer NetlifyCMS that work with generators like Jekyll, Hugo, Hexo, or Gatsby.
- Click on the ‘Deploy to Hugo’ button on this page. That will create a Netlify site and a repo on Github/Gitlab.
- Pull the repo to your machine.
- Move the
site/static/adminfolder from Netlify CMS to a temporary folder.
- Replace the
sitefolder content with your old Hugo folder.
- Move back the
adminfolder from the temp to
- Edit the
config.ymlto fit your old Hugo structure.
- Commit and push.
Your site should be up now on url that looks like
- (optional) Rename the Netlify url to something good e.g.
- Transfer your domain NameServer to Netlify’s. Then let Netlify set the A and CNAME DNS record.
- (optional) Change the MX and TXT record if you have mail server setup for your domain name.
- Set SSL cert - they are using Let’s encrypt and will get you a wildcard cert.
I was having a problem where my site was still using Netlify’s wildcard cert instead of my own. When I emailed their support, I was expecting a slow reply. However, they replied in 5 minutes and fixed my problem!
The quick response blew me away. This is better than some of the paid service! I highly recommend them based on this alone.
I asked them about it and how can they offer their services for free. Their answer:
This post is my effort to evangelist Netlify in return for their amazing free service.
You should give them a try.