首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >将docpad DocPad站点部署到Heroku时出错

将docpad DocPad站点部署到Heroku时出错
EN

Stack Overflow用户
提问于 2013-11-18 21:09:49
回答 1查看 394关注 0票数 0

我跟随一个教程并下载了预先构建的站点。在2013年11月18日做了一些小的改变,如我的github提交所示。然后推到Heroku身上却犯了错误。

这是我运行heroku logs时得到的结果

代码语言:javascript
复制
2013-11-18T20:17:28.227721+00:00 heroku[api]: Enable Logplex by jgallardo720@gmail.com
2013-11-18T20:17:28.283130+00:00 heroku[api]: Release v2 created by jgallardo720@gmail.com
2013-11-18T20:26:28.114070+00:00 heroku[router]: at=info code= desc="Blank app" method=GET path=/ host=nodehipster.herokuapp.com fwd="98.173.1.66" dyno= connect= service= status=502 bytes=
2013-11-18T20:26:28.263173+00:00 heroku[router]: at=info code= desc="Blank app" method=GET path=/favicon.ico host=nodehipster.herokuapp.com fwd="98.173.1.66" dyno= connect= service= status=502 bytes=
2013-11-18T20:26:28.571363+00:00 heroku[router]: at=info code= desc="Blank app" method=GET path=/favicon.ico host=nodehipster.herokuapp.com fwd="98.173.1.66" dyno= connect= service= status=502 bytes=
2013-11-18T20:30:18.395751+00:00 heroku[router]: at=info code= desc="Blank app" method=GET path=/ host=nodehipster.herokuapp.com fwd="98.173.1.66" dyno= connect= service= status=502 bytes=
2013-11-18T20:34:16+00:00 heroku[slug-compiler]: Slug compilation started
2013-11-18T20:34:44.265581+00:00 heroku[api]: Scale to web=1 by jgallardo720@gmail.com
2013-11-18T20:34:44.302566+00:00 heroku[api]: Add PATH config by jgallardo720@gmail.com
2013-11-18T20:34:44.333763+00:00 heroku[api]: Release v3 created by jgallardo720@gmail.com
2013-11-18T20:34:44.413127+00:00 heroku[api]: Deploy 8fbd235 by jgallardo720@gmail.com
2013-11-18T20:34:44.432473+00:00 heroku[api]: Release v4 created by jgallardo720@gmail.com
2013-11-18T20:34:44+00:00 heroku[slug-compiler]: Slug compilation finished
2013-11-18T20:34:47.265386+00:00 heroku[web.1]: Starting process with command `node_modules/docpad/bin/docpad-server`
2013-11-18T20:34:49.200112+00:00 app[web.1]: info: Environment: development
2013-11-18T20:34:49.193219+00:00 app[web.1]: info: Welcome to DocPad v6.54.8 (global installation: /app/node_modules/docpad)
2013-11-18T20:34:49.195637+00:00 app[web.1]: info: Contribute: http://docpad.org/docs/contribute
2013-11-18T20:34:49.197908+00:00 app[web.1]: info: Plugins: cleanurls, coffeescript, eco, ghpages, grunt, highlightjs, livereload, marked, nodesass, partials, related, sass, text
2013-11-18T20:34:49.337179+00:00 app[web.1]: info: DocPad listening to http://localhost:40142/ on directory /app/out
2013-11-18T20:34:49.381385+00:00 app[web.1]: info: LiveReload listening to new socket on channel /docpad-livereload
2013-11-18T20:34:49.394435+00:00 app[web.1]: info: Generating...
2013-11-18T20:34:50.953986+00:00 app[web.1]: warning:
2013-11-18T20:34:50.953986+00:00 app[web.1]:   Rendering the extension "md" to "html" on "posts/inception-of-this-site.html.md" didn't do anything.
2013-11-18T20:34:50.953986+00:00 app[web.1]:   Explanation here: http://docpad.org/extension-not-rendering
2013-11-18T20:34:50.960356+00:00 app[web.1]:   Rendering the extension "md" to "html" on "posts/my-project-brvtally.html.md" didn't do anything.
2013-11-18T20:34:50.960356+00:00 app[web.1]: warning:
2013-11-18T20:34:50.960356+00:00 app[web.1]:   Explanation here: http://docpad.org/extension-not-rendering
2013-11-18T20:34:51.581577+00:00 app[web.1]:     /app/node_modules/docpad-plugin-nodesass/node_modules/node-bourbon/assets/stylesheets/bourbon-deprecated-upcoming:7, in mixin `box-shadow`
2013-11-18T20:34:51.581577+00:00 app[web.1]:     /app/src/documents/styles/style.css.scss:48
2013-11-18T20:34:51.581577+00:00 app[web.1]: WARNING: box-shadow is deprecated and will be removed in the next major version release
2013-11-18T20:34:51.581577+00:00 app[web.1]:
2013-11-18T20:34:51.595182+00:00 app[web.1]:   Rendering the extension "md" to "html" on "posts/inception-of-this-site.html.md" didn't do anything.
2013-11-18T20:34:51.595182+00:00 app[web.1]: warning:
2013-11-18T20:34:51.595182+00:00 app[web.1]:   Explanation here: http://docpad.org/extension-not-rendering
2013-11-18T20:34:51.608794+00:00 app[web.1]: warning:
2013-11-18T20:34:51.608794+00:00 app[web.1]:   Rendering the extension "md" to "html" on "posts/my-project-brvtally.html.md" didn't do anything.
2013-11-18T20:34:51.608794+00:00 app[web.1]:   Explanation here: http://docpad.org/extension-not-rendering
2013-11-18T20:34:52.071146+00:00 app[web.1]: SCSS does not appear to be available on your system
2013-11-18T20:34:52.071146+00:00 app[web.1]: warning: Something went wrong while rendering: styles/style.css.scss
2013-11-18T20:34:52.082835+00:00 app[web.1]:     at SassPlugin.render (/app/node_modules/docpad-plugin-sass/out/sass.plugin.js:96:25)
2013-11-18T20:34:52.082835+00:00 app[web.1]:     at Task.<anonymous> (/app/node_modules/docpad/node_modules/event-emitter-grouped/out/lib/event-emitter-grouped.js:38:23)
2013-11-18T20:34:52.081587+00:00 app[web.1]: SCSS does not appear to be available on your system
2013-11-18T20:34:52.082835+00:00 app[web.1]: Error: SCSS does not appear to be available on your system
2013-11-18T20:34:52.081587+00:00 app[web.1]: warning: Something went wrong while rendering: styles/zurb-foundation.css.scss
2013-11-18T20:34:52.082835+00:00 app[web.1]:     at ambi (/app/node_modules/docpad/node_modules/ambi/out/lib/ambi.js:23:18)
2013-11-18T20:34:52.082835+00:00 app[web.1]:     at b (domain.js:183:18)
2013-11-18T20:34:52.082835+00:00 app[web.1]:     at Domain.run (domain.js:123:23)
2013-11-18T20:34:52.082835+00:00 app[web.1]:     at fire (/app/node_modules/docpad/node_modules/taskgroup/out/lib/taskgroup.js:159:23)
2013-11-18T20:34:52.082835+00:00 app[web.1]:     at ambi (/app/node_modules/docpad/node_modules/ambi/out/lib/ambi.js:23:18)
2013-11-18T20:34:52.082978+00:00 app[web.1]:     at process._tickFromSpinner (node.js:390:15)
2013-11-18T20:34:52.082835+00:00 app[web.1]:     at Task.fire (/app/node_modules/docpad/node_modules/taskgroup/out/lib/taskgroup.js:166:25)
2013-11-18T20:34:52.082835+00:00 app[web.1]:     at process._tickDomainCallback (node.js:459:13)
2013-11-18T20:35:22.933177+00:00 heroku[router]: at=error code=H12 desc="Request timeout" method=GET path=/ host=nodehipster.herokuapp.com fwd="98.173.1.66" dyno=web.1 connect=2ms service=30000ms status=503 bytes=0
2013-11-18T20:34:49.543710+00:00 heroku[web.1]: State changed from starting to up
2013-11-18T20:38:47.093255+00:00 heroku[router]: at=error code=H12 desc="Request timeout" method=GET path=/ host=nodehipster.herokuapp.com fwd="98.173.1.66" dyno=web.1 connect=2ms service=30000ms status=503 bytes=0

在阅读部署到Heroku的来自docpad的文件时,我没有注意到我需要从终端运行heroku config:add NODE_ENV=production。但还是没有成功。

日志中提到了http://docpad.org/extension-not-rendering,这只是抱怨这个问题的人们之间的一次对话。有人建议给windows安装一个插件(我在mac上)。

然后另一个人说,他通过将*.min.css文件添加到一个名为static的文件夹来解决这个问题。

但是这些文件首先在哪里,我应该在哪里创建这个静态文件。我还有什么遗漏吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2013-11-27 19:57:41

sassnodesass插件都已安装,这将相互冲突。

sass pugin不会在Heroku上运行,除非您自己通过自定义构建包手动安装sass。nodesass插件应该。

试着卸载sass插件docpad uninstall sass,然后再尝试部署。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/20057955

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档