【发布时间】:2015-01-28 14:49:58
【问题描述】:
有人知道如何在 Heroku 上构建咖啡脚本吗?
我有一个 nodejs Web 应用程序,带有一些客户端资源(全部用咖啡编写),并且想要让 heroku 构建咖啡脚本,而无需我在本地构建并上传目标。
我已按照说明尝试了 Aergonaut 构建包 - 但出现以下错误:
/tmp/node-node-H5WL/bin/node: error while loading shared libraries: libssl.so.0.9.8: cannot open shared object file: No such file or directory
! Failed to install --production dependencies with npm
! Push rejected, failed to compile Coffeescript app
Package.json:
{
"name": "WebClient",
"version": "0.0.0",
"private": true,
"scripts": {
"start": "node ./bin/www"
},
"dependencies": {
"express": "~4.9.0",
"body-parser": "~1.8.1",
"cookie-parser": "~1.3.3",
"morgan": "~1.3.0",
"serve-favicon": "~2.1.3",
"debug": "~2.0.0",
"jade": "~1.6.0",
"coffee-script": "1.8.0"
}
}
【问题讨论】:
-
您的 pagackage.json 中是否包含 coffeescript?
-
是的,我现在已经包含在原始帖子中了。
标签: node.js heroku coffeescript