本文介绍了节点的heroku:! Heroku推送拒绝,没有Cedar支持的应用程序检测到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是newku和express.js的新手。我尝试通过教程,但是我不能用'git push heroku master'这个步骤。我完全遵循了这个教程。以下是错误消息:

 计数对象:269,完成。 
使用最多2个线程的Delta压缩。
压缩对象:100%(241/241),完成。
写入对象:100%(269/269),188.93 KiB,完成。
总计269(delta 9),重用0(delta 0)
! Heroku推送拒绝,没有Cedar支持的应用程序检测到

[email protected]:cryptic-journey-9914.git
! [远程拒绝]主 - > master(预收款钩子拒绝)
错误:未能推一些参考[email protected]:cryptic-journey-9914.git


您需要。为此,请创建一个名为 Procfile 的文件,其中包含以下内容:

  web:node web.js 

假设您的javascript文件称为 web.js



ps不要忘记将procfile添加到git并提交它。


I am new to heroku and express.js. I try to go through the tutorial, but I cannot make it with the step 'git push heroku master'. I followed the tutorial exactly. Below is the error message:

Counting objects: 269, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (241/241), done.
Writing objects: 100% (269/269), 188.93 KiB, done.
Total 269 (delta 9), reused 0 (delta 0)
 !     Heroku push rejected, no Cedar-supported app detected

To [email protected]:cryptic-journey-9914.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to '[email protected]:cryptic-journey-9914.git'
解决方案

did you read the Getting Started with Node.js on Heroku article on Heroku Dev Center?

You need to declare your process type with Procfile. To do so, create a file named Procfile, with the following content:

web: node web.js

assume that your javascript file is called web.js.

p.s. don't forget to add the Procfile to git and commit it.

这篇关于节点的heroku:! Heroku推送拒绝,没有Cedar支持的应用程序检测到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-26 14:14