Jekyll does not service the site locally

Configuration: OSX 10.9.1, ruby ​​2.1.1 via RVM

I created a new Jekyll site using the team jekyll new sitename.

Then I enter this directory and issue the command jekyll serve.

I get the following notification:

Configuration file: /Users/George/sitename/_config.yml
            Source: /Users/George/sitename
       Destination: /Users/George/sitename/_site
      Generating... done.
    Server address: http://0.0.0.0:4000
  Server running... press ctrl-c to stop.

However, when I try to visit http://localhost:4000/or http://0.0.0.0:4000/my browser endlessly tries to load the page.

I checked and the site was built correctly, including index.htmlat /Users/George/sitename/_site/.

_config.yml looks like that:

name: sitename
markdown: maruku
pygments: true

Does anyone know why Jekyll may not maintain the site, but does not throw any errors?

: 6000 , page not found, - 4000, .

+4
1

, - 4000 . , :

sudo lsof -i :4000

, , baseurl. _config.yml , baseurl , URL-, , , baseurl: http://myawesomesite.com, Jekyll , URL-.

, :

baseurl / _config.yml:

baseurl: /

Jekyll --baseurl:

$ jekyll serve -w --baseurl '/'

, :

$ jekyll server -w --baseurl '/' --port 4000

, jekyll, --trace:

$ jekyll server -w --trace
+4

Source: https://habr.com/ru/post/1531339/


All Articles