Skip to content

Latest commit

 

History

History
41 lines (25 loc) · 1.39 KB

README.md

File metadata and controls

41 lines (25 loc) · 1.39 KB

jekyll-development-environment

Docker scripts that let you run Jekyll without installing ruby. Supports Windows and Linux

Docker for Windows

Docker for Linux

Docker Machine for Linux

Linux users will also need to install: VirtualBox

Setup:

Add the appropriate scripts to the root directory of your project, rename them if you prefer (remove the OS prefix)eg:

#####Ubuntu: $ mv setup-docker-host /YOUR_PROJECT/setup-docker-host $ mv linux-start /YOUR_PROJECT/start $ mv linux-publish /YOUR_PROJECT/publish

Windows:
$ mv setup-docker-host /YOUR_PROJECT/setup-docker-host
$ mv windows-start /YOUR_PROJECT/start
$ mv windows-publish /YOUR_PROJECT/publish

To Use:

Now you can develop your project in docker by just running(this will build the site, and serve it on a URL that will be displayed to you. This build will include draft posts)

$ ./start

When your done developing run (This does the same as above, but will NOT include draft posts):

$ ./publish

Most edits should occur without a need for restarting, if an edit does not appear, simply re-run the scripts, they are all idempotent.

Once your happy with your site, simply upload the dist folder to your favorite hosting provider.