Ask HN: How do you host your static site?
I've finally got around to fixing my blog, and currently host on 000webhost, but I was wondering if anyone has a good flow for hosting their static site? I use hugo to generate it, and it would be nice to stay on the command line the whole time, which I know I could do with ftp though a little powershell, but I want to see the work flow of others.
7 comments
[ 2.7 ms ] story [ 23.0 ms ] threadFor the most part I host them on a VPS myself, using Sovereign (to which I'm a contributor).
http://github.com/sovereign/sovereign
All I need do is push to my Bitbucket repo and Netlify automatically pulls the latest changes and runs the build command. That, combined with a CMS-as-service like Forestry.io or Cloudcannon makes for a very seamless experience.
The work flow is simple. First, I fork one of example projects provided by GitLab [2]. Then, I make changes (creating a new post or fixing the site title). I don't forget to enable shared runners as mentioned by GitLab itself. Shared runners build and run your changes on Docker. Finally, I make commits and push it to remote server using command line. Let the machine build your changes!
Note: you can set up your SSL and domain configurations.
[1]: https://pages.gitlab.io
[2]: https://gitlab.com/groups/pages