2016-08-25 147 views
0

這是我的用於jekyll服務器的_config.yml文件。用url寫的ip是我的服務器IP地址。當我運行化身成爲它給了我這個消息無法加載服務器上的jekyll

Configuration file: /root/cloudadic/_config.yml 
      Source: . 
     Destination: ./_site 
Incremental build: disabled. Enable with --incremental 
     Generating... 
        done in 0.507 seconds. 
Auto-regeneration: enabled for '.' 
Configuration file: /root/cloudadic/_config.yml 
    Server address: http://127.0.0.1:4000 

_config.yml

# Site settings 
    title: ACBD 
    description: "A minimal blog template, build with Jekyll." 
    url: "http://XXX.XX.XX.XXX:4000/" 

    # Build settings 
    baseurl: # Change this to your relative path (ex: /blog), or leave just a/
    markdown: kramdown 
    source: . 
    destination: ./_site 
    permalink: /:title 
    paginate: 8 
    paginate_path: /page:num/ 

    # Default values 
    defaults: 
     - 
     scope: 
      path: "" 
      type: "posts" 
     values: 
      layout: "post" 

    # Custom variables 
    version: "1.1.0" 

    # Options 
    custom_header: false 
    custom_nav_footer: false 
    reverse: false 

    gems: 
     - jekyll-sitemap 
     - jekyll-paginate 

但是,當我試圖訪問這個http://XXX.XX.XX.XXX:4000/,博客不加載。

回答

0

服務器地址:http://127.0.0.1:4000

如果你希望你的服務器在響應http://XXX.XX.XX.XXX:4000/,你必須設置host_config.ymlsee doc)。

host: XXX.XX.XX.XXX 
相關問題