首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >Heroku节点应用程序部署失败

Heroku节点应用程序部署失败
EN

Stack Overflow用户
提问于 2015-01-01 16:00:46
回答 1查看 763关注 0票数 2

从今天开始部署失败,即2015年1月1日突然到达heroku。

代码语言:javascript
运行
复制
+ 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
EN

回答 1

Stack Overflow用户

发布于 2015-01-01 21:04:40

我今天遇到了同样的问题。我们已经将一些节点模块签入到Git中,还有一些模块是在推送期间使用npm install安装的,问题是heroku-buildpack-nodejs最近被更新以不再支持此功能。现在,您需要承诺将所有模块都签入到Git,或者没有签入-后者是更好的方式。

他们的自述文件包括一种通过使用heroku-buildpack的早期版本来修复此问题的方法:

对于大多数Node.js应用程序来说,这个内置包应该工作得很好。但是,如果您无法使用这个新版本的buildpack进行部署,您可以通过将应用程序锁定到以前的版本来使其再次工作: heroku配置:设置BUILDPACK_URL=https://github.com/heroku/heroku-buildpack-nodejs#v63 -a my-app git提交-am“空”--允许-空git推heroku母版 然后,请在help.heroku.com上打开一张支持票,这样我们就可以在默认的buildpack上诊断和运行您的应用程序。

如果您使用heroku- buildpack -多作为您的构建包(就像我一样),您可以将"#v63“后缀添加到.buildpacks文件中的buildpack中。

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

https://stackoverflow.com/questions/27732316

复制
相关文章

相似问题

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