Oct 10, 2011

NodeJS: Heroku push rejected, no Rails or Rack app detected

If you're seeing this error when you git push heroku master:

-----> Heroku receiving push
! Heroku push rejected, no Rails or Rack app detected
... or this error listed by heroku logs:

heroku[slugc]: Slug compilation failed: no Rails or Rack app detected

Then most likely you didn't explicitly specify Cedar as your heroku stack. You can fix this now by doing the following:

$ heroku create --stack cedar
Creating freezing-water-1234... done, stack is cedar
http://freezing-water-1234.herokuapp.com/ | git@heroku.com:freezing-water-1234.git


Now you need to correct your git remote definition for heroku. I just edited my .git/config file, like so:

...
[remote "heroku"]
url = git@heroku.com:freezing-water-1234.git
...


Now git push heroku master gets you on the right track.

Hope that helps!

0 comments: