Heroku push rejected, no Cedar-supported app detec

2019-01-03 12:57发布

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 git@heroku.com:electric-dusk-3217.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to <my heroku rep>

13条回答
乱世女痞
2楼-- · 2019-01-03 13:10


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.

查看更多
狗以群分
3楼-- · 2019-01-03 13:13

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.

查看更多
爷、活的狠高调
4楼-- · 2019-01-03 13:17

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
查看更多
We Are One
5楼-- · 2019-01-03 13:18

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

查看更多
疯言疯语
6楼-- · 2019-01-03 13:18

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

查看更多
▲ chillily
7楼-- · 2019-01-03 13:18

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.

查看更多
登录 后发表回答