Heroku节点应用程序部署失败

从今天的01-jan-2015突然到Herkuku,部署失败

+ git push git@ec2-54-187-2-82.us-west-2.compute.amazonaws.com:sky-tickets-dev/skytickets-front.git stage Everything up-to-date + git push -f git@heroku.com:skytickets-stage.git stage:master Fetching repository, done. -----> Fetching custom git buildpack... done -----> Multipack app detected =====> Downloading Buildpack: https://github.com/heroku/heroku-buildpack-nodejs.git =====> Detected Framework: Node.js Node engine: 0.10.21 Npm engine: 1.2.x Start mechanism: Procfile node_modules source: prebuilt node_modules cached: true NPM_CONFIG_PRODUCTION=true NODE_MODULES_CACHE=true PRO TIP: Avoid checking node_modules into source control See https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git- -----> Installing binaries Downloading and installing node 0.10.21... Resolving npm version 1.2.x via semver.io... Downloading and installing npm 1.2.8000 (replacing version 1.3.11)... -----> Building dependencies Rebuilding any native modules for this architecture -----> Checking startup method Found Procfile -----> Finalizing build Creating runtime environment Exporting binary paths Cleaning up build artifacts Caching node_modules for future builds Build successful! skytickets@0.0.1 /tmp/build_604cc19d81766dfe5375fc2195373f74 ├── UNMET DEPENDENCY async@0.2.x ├── UNMET DEPENDENCY basic-logger@0.4.x ├── UNMET DEPENDENCY cloudinary@1.0.x ├── UNMET DEPENDENCY express@3.4.x 

今天我遇到了同样的问题。 我们有一些节点模块检入Git,有些是在推送过程中使用npm install的,问题是最近更新了heroku-buildpack-nodejs ,不再支持这个模块。 现在你需要承诺要么所有的模块签入Git或没有签入 – 后者是更好的方法。

他们的自述文件包含一个使用以前版本的heroku-buildpack-nodejs来修复这个问题的方法:

对于大多数Node.js应用程序,这个buildpack应该可以正常工作。 但是,如果您无法使用此新版本的buildpack进行部署,则可以通过将其locking到以前的版本来再次运行您的应用程序:

 heroku config:set BUILDPACK_URL=https://github.com/heroku/heroku-buildpack-nodejs#v63 -a my-app git commit -am "empty" --allow-empty git push heroku master 

然后请在help.heroku.com打开一个支持票证,以便我们诊断并让您的应用程序在默认的buildpack上运行。

如果您使用的是heroku-buildpack-multi作为您的buildpack(与我一样),则可以将“#v63”后缀添加到.buildpacks文件中的buildpack URL中。