This article is intended for beginner.
Goal: Hosting on Netlify Step By Step
I also wrote about Git Hosting. Step by step article, that you can read here:
You may also want to read the first mention above, before continue reading this article.
Choice: Deploying Method
How many ways to deploy your static site? I found at least ten ways to deploy SSG site.
1: Prepare Your Repository
Netlify only build repo to static site, but doesn’t host the repository itself. So you need to create your own repositry.
You can create git repository using
Now you can make repository, with any name, for example:
Note that, this is just an example, you should use your username account. and you should use your own repository.
2: Using Netlify
This step doesn’t require coding at all. Using figures below as an explanation would be sufficient.
Create a netlify, and then create new site
Netlify is using Continuous Deployment. You should pick the source of your repository.
In this example, I choose github.
Now you should pick one of the repo in your github
You might need to setup authorization first, for your repository, so that netlify can access it.
Once you pick a repo, netlify is smart enough to, determine static site that you have. In this case Hexo.
After click the deploy button, netlify will give a random name.
Tis takes a few seconds to delploy, depend on your project complexity.
You can preview your setting, and change whatever you might need.
Change Subdomain Name
I mostly change the site name, with something that easy to remember.
Now it is live. Served in this address:
What is Next ?
Consider continue reading [ Hexo - Summary ]. There is at last in this article series, a summary about what Hexo can do.