I’m just getting started with converting my first Jekyll site and am trying to figure out what the best way is to deploy the site once I have it complete locally and ready to go. I have my own hosting, and have been trying to dig up the best options. Here’s what I’ve found for choices:
- Create a copy of the git repo on the server, and then use .htaccess to redirect the root to the _site folder.
- Use a sparse checkout to just check out the _site folder on the server, but still use git to deploy
- Build the site on the server whenever changes are pulled into specific branch.
- Push just the static files as their own repository, and have a second repository for the source.
I’d like to try to build locally, just to experience being very independent of the server, but only as long as that seems like as rational a choice.
Any thoughts or resources about evaluating which among these choices makes the most sense?