0我最后一次推向Heroku失败但没有给出太多解释。
自第1天起,node_modules已正确添加到.gitignore。自上次部署以来,未启动对package.json的更改,未安装新模块或bower组件。
有没有办法从日志中获取更多详细信息? -v似乎没有添加任何东西。我有点不知所措,任何帮助都会受到极大的欢迎。
错误消息:
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Removing .DS_Store files
remote: -----> Fetching custom git buildpack... done
remote: -----> Node.js app detected
remote:
remote: ! Push rejected, failed to compile Node.js app
remote:
remote: Verifying deploy...
remote:
remote: ! Push rejected to inviewapp.
remote:
To https://git.heroku.com/xboardx.git
! [remote rejected] master -> master (pre-receive hook declined)
以下是package.json的内容:
{
"name": "xboardx",
"version": "0.0.1",
"dependencies": {
"gzippo": "^0.2.0",
"express": "^4.10.5",
"morgan": "^1.5.0",
"require-dir": "^0.1.0",
"gulp": "^3.8.0",
"gulp-autoprefixer": "^0.0.6",
"gulp-cache": "^0.2.0",
"gulp-csso": "^0.2.6",
"gulp-filter": "^1.0.0",
"gulp-flatten": "^0.0.2",
"gulp-imagemin": "^1.0.0",
"gulp-inject": "^1.0.0",
"gulp-jshint": "^1.8.0",
"gulp-karma": "^0.0.4",
"gulp-load-plugins": "^0.8.0",
"gulp-minify-html": "^0.1.3",
"gulp-ng-annotate": "^0.3.0",
"gulp-ng-html2js": "^0.1.6",
"gulp-protractor": "^0.0.11",
"gulp-replace": "^0.4.0",
"gulp-rev": "^1.1.0",
"gulp-rev-replace": "^0.3.0",
"gulp-sass": "^0.7.3",
"gulp-size": "^1.1.0",
"gulp-uglify": "^1.0.0",
"gulp-useref": "^1.0.0",
"http-proxy": "^1.3.0",
"main-bower-files": "^2.0.0",
"protractor": "^1.4.0",
"uglify-save-license": "^0.4.1",
"wiredep": "^1.8.5",
"chalk": "^0.4.0",
"connect-modrewrite": "^0.7.9",
"del": "^0.1.3",
"jshint-stylish": "^0.4.0"
},
"devDependencies": {
"browser-sync": "^1.3.6",
"karma-jasmine": "^0.1.5",
"karma-phantomjs-launcher": "^0.1.4"
},
"engines": {
"node": "0.10.x"
},
"scripts": {
"start": "node server.js"
}
}
答案 0 :(得分:0)
节点0.11.x不稳定,Heroku不支持。
更改为:
` "engines": {
"node": "0.10.x"
},
`
来源:https://devcenter.heroku.com/articles/nodejs-support#node-js-runtimes