Connor Black
Connor Black

Reputation: 7181

Heroku Node Application Push Failure

So I'm trying to push my node app to heroku but I keep getting this error:

!     Heroku push rejected, no Cedar-supported app detected

To [email protected]:*************.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@***************.git'

I created this app with heroku create --stack cedar as reccomended by this article: Deploy Geddy to Heroku but sadly that did no good for me.

UPDATE: my 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"
  }
}

Upvotes: 1

Views: 353

Answers (2)

Warren Reilly
Warren Reilly

Reputation: 344

I had this problem also with a node app and just got around it.

package.json was the problem and once added this is the steps I used:

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

This seemed to do the trick for me. Hope it helps.

Upvotes: 1

Alex
Alex

Reputation: 38499

Some things to check.

  • Ensure your package.json is called package.json (check spelling / case)

  • Make sure you've comitted package.json to git:

    $ git add package.json
    $ git commit -m "added package.json"

Upvotes: 0

Related Questions