无法加载服务器上的jekyll
问题描述:
这是我的用于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/,博客不加载。
答
服务器地址:
http://127.0.0.1:4000
如果你希望你的服务器在响应http://XXX.XX.XX.XXX:4000/
,你必须设置host
在_config.yml
(see doc)。
host: XXX.XX.XX.XXX