Heroku push rejected, no Cedar-supported app detected

Ruby on-RailsRuby on-Rails-3Heroku

Ruby on-Rails Problem Overview


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>

Ruby on-Rails Solutions


Solution 1 - Ruby on-Rails

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

Solution 2 - Ruby on-Rails

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

Solution 3 - Ruby on-Rails

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.

Solution 4 - Ruby on-Rails

Heroku detects a supported app by looking for specific project files. To find the requirements for your language, start here.

Solution 5 - Ruby on-Rails

Not associated with a new app, but... I ran into this same error message after installing a custom BUILDPACK on heroku and then forgetting about it. The next time I went to deploy to heroku I saw:

-----> Fetching custom git buildpack... done

 !     Push rejected, no Cedar-supported app detected

The fix was to check:

 heroku config

And, there, I found a Var called BUILDPACK_URL which I had to unset with:

heroku config:unset BUILDPACK_URL

... and voila!

Solution 6 - Ruby on-Rails

Another cause: I was pushing master, while working on a non-master branch. My master branch didn't have requirements.txt.

I didn't want to push from master, but heroku only pays attention to the master branch. The solution was to push my local branch to heroku's master branch:

git push heroku local_branch:master

Solution 7 - Ruby on-Rails

Another cause of this error for Rails apps: we had this deploy error occur when we hadn't removed a git merge conflict from our Gemfile.lock file.

Solution 8 - Ruby on-Rails

I had the same issue. "Gemfile" was included in ".gitignore" and has therefore not been part of the deployment. Heroku requires Gemfile for Rails projects.

Solution 9 - Ruby on-Rails

I fixed this by making a superficial change to my Gemfile and recommitting. For some reason it wasn't included in my last commit.

Solution 10 - Ruby on-Rails


I met the same problem here.
My check as follow:

  1. Make sure "foreman start" works well locally.
  2. Make sure only one new app create on your heroku account.
    Hope it help.

Solution 11 - Ruby on-Rails

I was following the RailsTutorial.org steps and this error showed up. None of the answers on this post worked. Then I saw this comment that led to this answer which was the only thing that worked for me so that might solve other people's problems with the tutorial as well.

Solution 12 - Ruby on-Rails

When this problem appears with the project based on static files (only html, css and js) it is recommended to follow this guidlines: https://discussion.heroku.com/t/push-rejected-no-cedar-supported-app-detected/640/3

Solution 13 - Ruby on-Rails

I also had the problem with django based app. Everything seemed to be ok: file names and other settings.

The problem was that in heroku console there was a BUILDPACK_URL setting defined for node.js - thus django application was rejected.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionWHITECOLORView Question on Stackoverflow
Solution 1 - Ruby on-RailsJnBrymnView Answer on Stackoverflow
Solution 2 - Ruby on-RailsWHITECOLORView Answer on Stackoverflow
Solution 3 - Ruby on-RailsncherroView Answer on Stackoverflow
Solution 4 - Ruby on-RailsPatrick FisherView Answer on Stackoverflow
Solution 5 - Ruby on-RailspdobbView Answer on Stackoverflow
Solution 6 - Ruby on-RailsjaphyrView Answer on Stackoverflow
Solution 7 - Ruby on-RailsJames P McGrathView Answer on Stackoverflow
Solution 8 - Ruby on-RailsAlexei DanchenkovView Answer on Stackoverflow
Solution 9 - Ruby on-RailsDan SandlandView Answer on Stackoverflow
Solution 10 - Ruby on-RailsEvan LinView Answer on Stackoverflow
Solution 11 - Ruby on-Rails2016rshahView Answer on Stackoverflow
Solution 12 - Ruby on-RailsTomasz KowalczykView Answer on Stackoverflow
Solution 13 - Ruby on-RailsOpalView Answer on Stackoverflow