heroku/heroku-buildpack-nodejs — Issue #11: package.json detected?
Author: DavyLandman
Created: 2012-02-12 13:28:57+00:00
State: open

Awesome that I can use node.js on heroku now, but somehow it doesn't detect the `package.json` so I'm wondering what I'm doing wrong?

Test script:

```
mkdir test-heroku
cd test-heroku
git init
echo '{
"name": "test-heroku"
,"version": "0.0.1"
}' > package.json
git add package.json
git commit -m "Added package.json"
heroku create --stack cedar --buildpack http://github.com/heroku/heroku-buildpack-nodejs.git
git push heroku master
````

test output:

```
Initialized empty Git repository in /private/tmp/test-heroku/.git/
[master (root-commit) b9c5cc0] Added package.json
1 files changed, 4 insertions(+), 0 deletions(-)
create mode 100644 package.json
Creating blooming-mountain-5427... done, stack is cedar
http://blooming-mountain-####.herokuapp.com/ | git@heroku.com:blooming-mountain-####.git
Git remote heroku added
Counting objects: 3, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 274 bytes, done.
Total 3 (delta 0), reused 0 (delta 0)

-----> Heroku receiving push
-----> Fetching custom buildpack... done
! Heroku push rejected, no Cedar-supported app detected

To git@heroku.com:blooming-mountain-####.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:blooming-mountain-####.git'
```

But if I look at `detect` the presence of the `package.json` should be enough?

So what am I doing wrong?