Heroku NodeJS帮助

编程入门 行业动态 更新时间:2024-10-16 18:29:44
本文介绍了Heroku NodeJS帮助 - 拒绝推送,未检测到Cedar支持的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

需要帮助部署nodeJS应用程序到Heroku。我有我的Procfile和Package.son文件。这是我得到的...

Need help on deploying a nodeJS app to Heroku please. I have my Procfile and Package.son file. This is what I am getting...

remote:构建资源:远程: remote:--- - >抓取定制git buildpack ...完成远程: remote:!推送被拒绝,未检测到Cedar支持的应用程序 remote:HINT:Heroku无法检测到构建包时发生此问题 remote:自动使用此应用程序。 remote:请参阅 devcenter.heroku/articles/buildpack b $ b remote:

remote: Building source: remote: remote: -----> Fetching custom git buildpack... done remote: remote: ! Push rejected, no Cedar-supported app detected remote: HINT: This occurs when Heroku cannot detect the build pack remote: to use for this application automatically. remote: See devcenter.heroku/articles/buildpacks remote:

该消息对我来说没有任何意义,因为它表示获取构建包已完成。我还有什么失踪?有什么建议吗?

The message doesn't make sense to me as it says fetching build pack done..what else am I missing? Any suggestions please?

谢谢。

Thanks.

推荐答案

听起来像是你已经设置了一个定制的buildpack。使用官方buildpack通常是最好的选择:

It sounds like you've set a custom buildpack. It's usually best, with node, to just use the official buildpack:

heroku buildpack:unset

一旦你设置并推送,它不会说提取定制buildpack,而是它会告诉你它检测到一个节点.js应用程序。如果它未检测到node.js应用程序,则表示您的应用程序缺少其package.json文件(小写)。

Once you set that and push, it won't say "fetching custom buildpack," but rather it will tell you that it detected a node.js app. If it doesn't detect a node.js app, that means that your app is missing its package.json file (lowercase).

更多推荐

Heroku NodeJS帮助

本文发布于:2023-07-14 10:08:36,感谢您对本站的认可!
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Heroku   NodeJS

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!