Is it possible to serve multiple Jekyll sites locally?

前端 未结 6 1488
旧时难觅i
旧时难觅i 2021-02-18 13:01

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 si

6条回答
  •  有刺的猬
    2021-02-18 13:19

    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

提交回复
热议问题