Is it possible to serve multiple Jekyll sites locally?

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

    Yes it is possible to serve multiple Jekyll sites locally by setting different port numbers for each site using the Local Server Port serve command option.

    See https://jekyllrb.com/docs/configuration/options/#serve-command-options.

    Set a port number other than Jekyll's default port (4000) in the site's _config.yml file or when serving the site via the command line.

提交回复
热议问题