Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run 'jekyll serve' pointing to another directory?

Tags:

jekyll

Right now I have to be in the directory I want to serve to run "jekyll serve". Is there any way to be in another directory and point to the directory I want to serve from? Something like:

jekyll serve --dir=anotherFolder

like image 255
nacho_dh Avatar asked Sep 18 '25 11:09

nacho_dh


1 Answers

Found it :)

jekyll serve --source src --destination dist

This will build from the src folder into the dist folder and serve from there.

like image 161
nacho_dh Avatar answered Sep 20 '25 09:09

nacho_dh