Quick Jekyll Commands
By default jekyll serve
runs on port 4000
. To run it on a different port:
jekyll serve --port 3100
If you are running jekyll on a virtual machine and want to access it from your host machine:
jekyll serve --host 0.0.0.0
(runs on port 4000)
jekyll serve --host 0.0.0.0 --port 3200
To preview site with drafts:
- create folder
_drafts
at root - create file within
_drafts
folder, for examplea-draft-post.md
- run
jekyll serve --drafts