Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Heroku push rejected, no Cedar-supported app detected

I'm creating a Rails app with Rails 3.1.3:

git init
git remote add heroku <my heroku repo>
git add .
git commit -a -m "First commit"
git push heroku master

Got:

Counting objects: 102, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (86/86), done.
Writing objects: 100% (102/102), 315.47 KiB, done.
Total 102 (delta 3), reused 0 (delta 0)

**-----> Heroku receiving push
 !     Heroku push rejected, no Cedar-supported app detected**

To [email protected]:electric-dusk-3217.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to <my heroku rep>
like image 531
WHITECOLOR Avatar asked Dec 02 '11 19:12

WHITECOLOR


3 Answers

I had a similar problem, but with Django (incorrectly named "requirements.txt"). I think to generalize the other answers here, when you get this error it's because Heroku is missing some key file that it uses to identify your app (and its type).

  • php: index.php
  • python: requirements.txt
  • ruby: Gemfile # note the capitalization
  • node: package.json
like image 117
JnBrymn Avatar answered Nov 08 '22 00:11

JnBrymn


The problem was that my "Gemfile" was named "gemfile"

like image 48
WHITECOLOR Avatar answered Nov 07 '22 22:11

WHITECOLOR


I ran into this error message, but my problem was that my rails app was not in the root directory of my git repo. After I moved the files into the root dir, everything worked.

like image 45
ncherro Avatar answered Nov 08 '22 00:11

ncherro