Is it possible to serve multiple Jekyll sites locally?

前端 未结 6 1491
旧时难觅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:29

    Open terminal, go to the Jekyll site directory and start the server

    jekyll serve --port 4001
    

    Go to another directory and start the second site

    jekyll serve --port 4002
    

提交回复
热议问题