Heroku失败:不识别Ghost博客资产

时间:2014-12-23 11:19:57

标签: heroku handlebars.js ghost-blog

我已将我的博客更新为ghost-0.5.7,并尝试让creator theme正常工作。但是我在Heroku上遇到了一个我不知道如何解决的错误。我已经在Ghost博客论坛上发布了,但博客的创建者似乎无法提供帮助。有什么想法吗?这是目录结构和heroku日志:

├── LICENSE
├── assets
│   ├── css
│   │   ├── foundation.css
│   │   ├── icons
│   │   │   ├── default
│   │   │   │   ├── default_logo_no_title_275x50.png
│   │   │   │   └── default_logo_no_title_275x50_2x.png
│   │   │   └── load
│   │   │   └── load.gif
│   │   ├── normalize.css
│   │   └── screen.css
│   ├── fonts
│   │   ├── icon-font.eot
│   │   ├── icon-font.svg
│   │   ├── icon-font.ttf
│   │   └── icon-font.woff
│   └── js
│   ├── index.js
│   └── jquery.fitvids.js
├── default.hbs
├── index.hbs
├── package.json
├── page.hbs
├── partials
│   ├── backfrompost.hbs
│   ├── header.hbs
│   └── pagination.hbs
└── post.hbs`

2014-12-23T07:25:46.863433+00:00 app[web.1]: ERROR: [default.hbs] The partial header could not be found
2014-12-23T07:25:46.863438+00:00 app[web.1]: Error: The partial header could not be found
2014-12-23T07:25:46.863440+00:00 app[web.1]: at new Error ()
2014-12-23T07:25:46.863441+00:00 app[web.1]: at Error.Exception (/app/node_modules/express-hbs/node_modules/handlebars/dist/cjs/handlebars/exception.js:13:41)
2014-12-23T07:25:46.863443+00:00 app[web.1]: at Object.invokePartial (/app/node_modules/express-hbs/node_modules/handlebars/dist/cjs/handlebars/runtime.js:179:11)
2014-12-23T07:25:46.863445+00:00 app[web.1]: at Object.invokePartialWrapper as invokePartial
2014-12-23T07:25:46.863436+00:00 app[web.1]: Ghost caught a processing error in the middleware layer. 
2014-12-23T07:25:46.863427+00:00 app[web.1]: 
2014-12-23T07:25:46.863447+00:00 app[web.1]: at Object.eval (eval at (/app/node_modules/express-hbs/node_modules/handlebars/dist/cjs/handlebars/compiler/javascript-compiler.js:171:23), :17:17)
2014-12-23T07:25:46.863434+00:00 app[web.1]: Rendering Error Page 
2014-12-23T07:25:46.863449+00:00 app[web.1]: at ret (/app/node_modules/express-hbs/node_modules/handlebars/dist/cjs/handlebars/runtime.js:137:30)
2014-12-23T07:25:46.863451+00:00 app[web.1]: at ret (/app/node_modules/express-hbs/node_modules/handlebars/dist/cjs/handlebars/compiler/compiler.js:422:21)
2014-12-23T07:25:46.863470+00:00 app[web.1]: at renderTemplate (/app/node_modules/express-hbs/lib/hbs.js:385:13)
2014-12-23T07:25:46.863472+00:00 app[web.1]: at stackRenderer (/app/node_modules/express-hbs/lib/hbs.js:426:9)
2014-12-23T07:25:46.863473+00:00 app[web.1]: at Waiter.callback (/app/nodemodules/express-hbs/lib/hbs.js:405:7)

1 个答案:

答案 0 :(得分:0)

不太确定这是否是一个解决方案,但我意识到我可能有一些旧的文件/配置等。从之前的推动中徘徊在我的Heroku应用程序中。

所以,我决定(1)git reset --hard,然后(2)再次推回回购。它现在正在工作!