How to create on-demand environments for Jekyll sites
“See how your Jekyll site and articles look like before you publish them.”
Want to see how your site will turn out before you publish? Just open a PR on your repo and Dockup will spin up a live site for you!
We’ll add a couple of files to the root directory:
Dockerfileto build the docker image of our site.
nginx.confto serve the static site using Nginx.
Now that we have a Dockerfile added to the source, let’s create a Dockup Blueprint.
Make sure you have configured you GitHub account with Dockup. If you haven’t done it yet, you can head over to Dockup Settings
And that’s all! Wasn’t that easy?
Now every time you open a pull request, Dockup will stage that branch and give you a new deployment as shown below:
You can follow similar steps to create on-demand environments for other static site generators, say for e.g. Hugo.
Would you like to test it out on your blog? Click here to get started.