新的 blogdown 帖子显示在 R-Studio 上,而不是在 Netlify 上呈现?如何调试?

New blogdown posts showing on R-Studio, not rendering on Netlify? How to debug?

我今天在我的 blogdown/netlify 支持的网站上添加了几篇博文:

https://github.com/brainstorm/brainblog/blob/master/content/brainstorm/2018-03-12-umccr-arteria.md

https://github.com/brainstorm/brainblog/blob/master/content/brainstorm/2018-03-13-umccr-pcgr.md

虽然他们 render/preview 在 R-Studio 上成功:

在 pushing/deploying 之后,那两个博文不会出现在 Netlify 托管的站点上(请参阅下面的部署日志)。 *即使是手动部署触发(启用清除缓存复选框),也无法相应地更新索引页面以显示两个新帖子:

从 Netlify 的角度来看,这是一个成功的部署,along with all previous pushes from github,据我从他们的 Web 控制台中可以看到:

4:17:37 PM: Build ready to start
4:17:39 PM: Fetching cached dependencies
4:17:39 PM: Starting to download cache of 65.2MB
4:17:39 PM: Finished downloading cache in 625.456927ms
4:17:39 PM: Starting to extract cache
4:17:40 PM: Finished extracting cache in 1.126872353s
4:17:41 PM: Finished fetching cache in 1.869794305s
4:17:41 PM: Starting to prepare the repo for build
4:17:41 PM: Preparing Git Reference refs/heads/master
4:17:42 PM: Found netlify.toml. Overriding site configuration
4:17:42 PM: Different build command detected, going to use the one specified in the toml file: 'HUGO_BASEURL='https://blogs.nopcode.org/brainstorm' hugo' versus 'hugo' in the site
4:17:42 PM: Starting build script
4:17:42 PM: Installing dependencies
4:17:43 PM: Started restoring cached node version
4:17:45 PM: Finished restoring cached node version
4:17:46 PM: v8.10.0 is already installed.
4:17:47 PM: Now using node v8.10.0 (npm v5.6.0)
4:17:47 PM: Attempting ruby version 2.4.3, read from .ruby-version file
4:17:48 PM: Using ruby version 2.4.3
4:17:48 PM: Using PHP version 5.6
4:17:48 PM: Installing Hugo 0.37.1
4:17:50 PM: Installing missing commands
4:17:50 PM: Executing user command: HUGO_BASEURL='https://blogs.nopcode.org/brainstorm' hugo
4:17:50 PM: Building sites …
4:17:50 PM: 

4:17:50 PM:                    | EN
4:17:50 PM: +------------------+-----+
4:17:50 PM:   Pages            | 221
4:17:50 PM:   Paginator pages  |   0
4:17:51 PM:   Non-page files   |   0
4:17:51 PM:   Static files     |  45
4:17:51 PM:   Processed images |   0
4:17:51 PM:   Aliases          |   0
4:17:51 PM:   Sitemaps         |   1
4:17:51 PM:   Cleaned          |   0
4:17:51 PM: Total in 283 ms
4:17:51 PM: Caching artifacts
4:17:51 PM: Started saving pip cache
4:17:51 PM: Finished saving pip cache
4:17:51 PM: Started saving emacs cask dependencies
4:17:51 PM: Finished saving emacs cask dependencies
4:17:51 PM: Started saving maven dependencies
4:17:51 PM: Finished saving maven dependencies
4:17:51 PM: Started saving boot dependencies
4:17:51 PM: Finished saving boot dependencies
4:17:51 PM: Build script success
4:17:51 PM: Starting to deploy site from 'public'
4:17:58 PM: Starting post processing
4:18:07 PM: Finished processing build request in 28.354802492s
4:18:12 PM: Post processing done
4:18:12 PM: Site is live

在 Netlify 的辩护中,这可能是 的症状...非常欢迎任何提示。

显然在今天 re-triggering 部署后,出现了一个帖子,这让我相信这是一个时区差异问题。

与世界其他地区相比,澳大利亚生活在未来的结果 X"D

缺少帖子是因为您的 front-matter 日期在未来。

注意:构建将使用 Netlify 构建服务器的时间。

今天是 2018-03-12

date: '2018-03-13T16:00:00.000000+00:00'

运行 Hugo 命令 hugo server --buildFuture 查看哪些帖子将建立在以后的部署上。

把这个答案留在这里以防其他人和我一样愚蠢...如果你能在 Rstudio 中看到 post 但在 netlifies 上看不到,请确保 draft:no 在你的 yaml.