新的博客帖子在R-Studio上显示,而不是在Netlify上呈现?怎么调试?

时间:2018-03-12 05:33:54

标签: rstudio hugo blogdown netlify

我今天在我的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

他们在R-Studio上成功渲染/预览时:

R-Studio preview

推送/部署后,这两个博客帖子没有出现在Netlify托管的网站上(请参阅下面的部署日志)。 *即使是手动部署触发(启用了清除缓存复选框),也无法相应地更新索引页面以显示两个新帖子:

Netlify live blog

从Netlify的角度来看,这是一个成功的部署,along with all previous pushes from github,据我所知,从他们的网络控制台:

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的辩护中,这可能是baseUrl issues not being fully solved yet, as I pointed out in an earlier question的症状......任何提示都非常受欢迎。

3 个答案:

答案 0 :(得分:3)

显然,在今天重新启动部署之后,其中一个帖子出现了,这让我相信这是一个时区差异问题。

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

答案 1 :(得分:1)

缺少的帖子是由于你前面的事情发生的日期。

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

今天的日期是2018-03-12

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

运行Hugo命令hugo server --buildFuture以查看将在以后部署时构建的帖子。

答案 2 :(得分:1)

只要其他人都像我一样愚蠢,请在此处保留此答案...如果您可以在Rstudio中看到该帖子,而在netlify上却看不到,请确保您的draft:no中的yaml。 / p>