Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to serve multiple Jekyll sites locally?

Tags:

jekyll

Every time I serve a Jekyll site from the command line it is served on port 4000. Two sites can't be served on the same port.

Is it possible to serve multiple Jekyll sites locally?

like image 214
Brian Zelip Avatar asked Sep 03 '14 17:09

Brian Zelip


People also ask

How do you stop Jekyll?

You can stop it with CTRL + C .


1 Answers

You can also start the server with an additional argument --port 1234 or --host hostname. For example:

$ jekyll serve --port 4001 --host my_hostname_or_ip 

You can view all the possible CLI flags from The official Jekyll documentation

like image 199
wcyn Avatar answered Oct 04 '22 02:10

wcyn