Each time I serve the Jekyll site from the command line, it is served on port 4000. Two nodes cannot be served on the same port.
Can I serve multiple Jekyll sites locally?
Yes, you can serve multiple Jekyll sites locally by setting different port numbers for each site using the local server server command.
See http://jekyllrb.com/docs/configuration/#serve-command-options .
Set the port number different from the default Jekyll port (4000) in the site file _config.yml or when servicing the site through the command line.
_config.yml
You can also start the server with the optional argument --port 1234 or --host hostname . For instance:
--port 1234
--host hostname
$ jekyll serve --port 4001 --host my_hostname_or_ip
You can view all possible CLI flags from the Jekyll Official Documentation
Source: https://habr.com/ru/post/1201757/More articles:Many RowSideColor heatmap.2 columns from gplots - rHow to use custom Java annotation processor in Gradle? - javaDivide IEnumerable in three parts: "above", "element", "below" with efficiency - c #Slide to unlock animation in Android - androidKotlin traits and modification - retrofitDifferentiate RemoteControlClient from the headset - androidHow to save spacing pattern on multiple lines using a container with flexible containers - javascriptDoes scipy logsumexp () perform an underflow problem? - pythonC ++ pattern covariance - c ++Dim / Hide the rest of the map nationwide with leaflet.js - leafletAll Articles