Blogdown:使用Netlify进行部署失败,标准主题为

时间:2017-09-12 10:08:38

标签: r hugo blogdown netlify

我刚刚从头开始安装了一个带有blogdown +标准主题的新RStudio项目,并通过GitHub将其部署到Netlify。这个过程一直与老版本的hugo-lithium-theme一起工作。但现在它没有部署。我什么都没改变:只是安装并通过我的GitHub-repo推送到Netlify

包含错误消息的最后几行是:

10:03:08 PM: Build complete: exit code: 0
10:03:08 PM: Cleaning up docker container 
10:03:08 PM: Starting to deploy site from 'publish' 
10:03:08 PM: Deploying to CDN 10:03:09 PM: Failed to deploy publish to CDN 
10:03:09 PM: stat /mnt/build-work/buildbot-796257821/repo/publish: no such file or directory 
10:03:09 PM: Finished processing build request in 16.651393261s

我使用的是HUGO_VERSION 0.27

1 个答案:

答案 0 :(得分:2)

[更新] 我刚在错误日志中注意到这一行:

10:03:08 PM: Starting to deploy site from 'publish' 

您可能为发布目录指定了错误的文件夹名称。 Hugo的默认值为public,而不是publish。有关示例设置,请参阅Section 3.1 of the blogdown book

有时Netlify无法建立网站(出于我不理解的原因),您可以尝试点击"触发部署" "部署"中的按钮; https://app.netlify.com上的标签,如果您要重新部署回购的主分支:

Trigger deploy

或者单击特定的失败部署,然后单击"重试部署"按钮:

Retry deploy