Heroku节点应用程序推送失败

所以我试图推我的节点应用程序heroku,但我不断收到此错误:

! Heroku push rejected, no Cedar-supported app detected To git@heroku.com:*************.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'git@***************.git' 

我创build了这个应用程序与heroku create --stack cedar本文build议: 部署Geddy Heroku,但悲伤,这对我没有好处。

更新:我的package.json

 { "name": "site", "version": "0.0.1", "dependencies": { "express": "3.x", "jade": ">= 0.0.1", "coffee-script": "~1.4.0", "node-dev": "~0.2.9", "connect-flash": "~0.1.0", "connect-assets": "~2.3.3", "everyauth": "~0.2.34", "mongoose": "~3.5.3", "mongodb": "~1.2.7", "crypto": "0.0.3", "moment": "~1.7.2" }, "engines": { "node": "0.8.x", "npm": "1.1.x" } } 

我也有一个节点的应用程序,并刚刚解决这个问题。

package.json是问题,一旦添加这是我使用的步骤:

 git add package.json git commit -m "Added package.json" git push origin master git push heroku master 

这似乎为我做了诡计。 希望能帮助到你。

有些事情要检查。

  • 确保你的package.json被称为package.json(检查拼写/大小写)

  • 确保你已经comit package.json git:

    $ git add package.json
    $ git commit -m“added package.json”