Heroku NodeJS帮助 - 拒绝推送,未检测到Cedar支持的应用程序 [英] Heroku NodeJS Help – Push rejected, no Cedar-supported app detected
问题描述
需要帮助部署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:请参阅 https://devcenter.heroku.com/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 https://devcenter.heroku.com/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帮助 - 拒绝推送,未检测到Cedar支持的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!