【发布时间】:2014-01-08 01:01:54
【问题描述】:
我使用 grunt 创建了一个静态单页站点。我现在正在尝试使用heroku-buildpack-nodejs-grunt 将它部署到heroku 用于节点咕噜声。
下面是我的根目录的图片:
Procfile:
web: node index.html
当我运行 $ git push heroku master 时,它会到达 Gruntfile 并失败:
-----> Found Gruntfile, running grunt heroku:production task
>> Local Npm module "grunt-contrib-uglify" not found. Is it installed?
上述错误继续将所有本地 NPM 模块列为未找到。如果我列出所有 loadNpmTasks 而不是使用“load-grunt-tasks”,我会得到完全相同的错误。
当我$ heroku logs 我得到:
Starting process with command `node web.js`
Error: Cannot find module '/app/web.js'
谁能看出我哪里出错了?
【问题讨论】:
标签: json node.js heroku gruntjs