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?
You can stop it with CTRL + C .
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With