wenyi
V2EX  ›  问与答

jekyll 本地打开 http://localhost:4000/ 没有内容,一片空白,之前打开是可以显示内容,现在不知搞了哪里无法显示了

  •  
  •   wenyi · Oct 9, 2014 · 4878 views
    This topic created in 4246 days ago, the information mentioned may be changed or developed.
    D:\ruby\jekyll>jekyll serve
    Configuration file: D:/ruby/jekyll/_config.yml
    Source: D:/ruby/jekyll
    Destination: D:/ruby/jekyll/_site
    Generating...
    done.
    Auto-regeneration: enabled for 'D:/ruby/jekyll'
    Configuration file: D:/ruby/jekyll/_config.yml
    Server address: http://0.0.0.0:4000/
    Server running... press ctrl-c to stop.
    5 replies    2014-10-10 10:12:19 +08:00
    SoloCompany
        1
    SoloCompany  
       Oct 9, 2014
    直接看 _site 目录是否有生成好你需要的静态网页啊,或者直接打开看是否正常
    如果 _site 下的静态网页正常,那说明你的浏览器代理设置问题
    wenyi
        2
    wenyi  
    OP
       Oct 9, 2014
    不知为啥生成后_site下的index.html里面为空?
    wenyi
        3
    wenyi  
    OP
       Oct 9, 2014
    @SoloCompany 不知为啥生成后_site下的index.html里面为空?
    wenyi
        4
    wenyi  
    OP
       Oct 10, 2014
    @SoloCompany 请问下jekyll传到github上页面乱七八糟,没有样式,这是怎么回事
    SoloCompany
        5
    SoloCompany  
       Oct 10, 2014
    @wenyi 你去 github pages 的说明文档里面看一下,确保本地开发环境使用的 jekyll 版本依赖(ruby 等)何官方的完全相同,一般你直接安装 jekyll 的话,会比 github 支持的版本要高,导致可能用到的内容 github 不支持
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5420 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 43ms · UTC 01:21 · PVG 09:21 · LAX 18:21 · JFK 21:21
    ♥ Do have faith in what you're doing.