Why and How I Moved My Blog To Netlify
date
Dec 9, 2018
slug
blog-netlify
status
Published
tags
Tech
summary
type
Post
Why Netlify?
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.
Steps to create and move
- 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/admin
folder from Netlify CMS to a temporary folder.
- Replace the
site
folder content with your old Hugo folder.
- Move back the
admin
folder from the temp tosite/static
.
- Edit the
config.yml
to fit your old Hugo structure.
- Commit and push.
Your site should be up now on url that looks like
some-random-word12314.netlify.com
.Use your own domain name
- (optional) Rename the Netlify url to something good e.g.
augusteo.netlify.com
- 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.
Netlify’s amazing customer service
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.
How can it be free? What’s the catch?
I asked them about it and how can they offer their services for free. Their answer:
(emphasis mine).
This post is my effort to evangelist Netlify in return for their amazing free service.
You should give them a try.