Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Heroku cannot detect the buildpack #93

Open
OKNoah opened this issue Apr 19, 2015 · 5 comments
Open

Heroku cannot detect the buildpack #93

OKNoah opened this issue Apr 19, 2015 · 5 comments

Comments

@OKNoah
Copy link

OKNoah commented Apr 19, 2015

Users-Mac:dev User$ git clone my-website.ca/ my-website_heroku
Cloning into 'my-website_heroku'...
done.
Checking out files: 100% (2267/2267), done.
Users-Mac:dev User$ cd my-website_heroku/
Users-Mac:my-website_heroku User$ heroku create -s cedar
Creating my-heroku-app-1234... done, stack is cedar-10
https://my-heroku-app-1234.herokuapp.com/ | https://git.heroku.com/my-heroku-app-1234.git
Git remote heroku added
Users-Mac:my-website_heroku User$ heroku config:add BUILDPACK_URL=https://github.com/mchung/heroku-buildpack-wordpress.git
Setting config vars and restarting my-heroku-app-1234... done, v3
BUILDPACK_URL: https://github.com/mchung/heroku-buildpack-wordpress.git
Users-Mac:my-website_heroku User$ git push heroku master
Counting objects: 2196, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2094/2094), done.
Writing objects: 100% (2196/2196), 10.00 MiB | 301.00 KiB/s, done.
Total 2196 (delta 233), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Fetching custom git buildpack... done
remote:
remote:  !     Push rejected, no Cedar-supported app detected
remote: HINT: This occurs when Heroku cannot detect the buildpack
remote:       to use for this application automatically.
remote: See https://devcenter.heroku.com/articles/buildpacks
remote:
remote: Verifying deploy...
remote:
remote: !   Push rejected to my-heroku-app-1234.
remote:
To https://git.heroku.com/my-heroku-app-1234.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/my-heroku-app-1234.git'
Users-Mac:my-website_heroku User$ git add -A
Users-Mac:my-website_heroku User$ git commit -a -m "heroku"
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean
Users-Mac:my-website_heroku User$
@OKNoah
Copy link
Author

OKNoah commented Apr 19, 2015

Also tried heroku buildpack:set https://github.com/mchung/heroku-buildpack-wordpress.git

@OKNoah
Copy link
Author

OKNoah commented Apr 19, 2015

Also tried heroku stack:set cedar-10

@dustinroak
Copy link

I'm having this same issue, but I've used Heroku for several sites and this is the first time encountered it. I /think/ it is happening because Heroku can't find specific files that inform it of what buildpack to use, and even if you specify what buildpack, it will fail anyway.

If I come across a workaround I'll let you know. Have you tried using the default buildpack?

@tylerehc
Copy link

Same issue here. Tried adding a Procfile as described here: http://stackoverflow.com/questions/22808677/how-to-resolve-push-rejected-no-cedar-supported-app-detected-error-in-heroku

No luck. Any leads?

@dustinroak
Copy link

Like I said before, I had used Heroku for Rails apps before with no problem. Shortly after commenting I realized that the one I was having this issue with was a little different. This time around I had created a blank repository on GitHub then cloned it right to my desktop. THEN created the Rails App.

So inside the directory made for my repository by GitHub was a ReadMe, the application itself, and the hidden .git file. In normal circumstances, one would create their app in the console, git init from the console (putting the .git file inside the app), and then push to GitHub and onto Heroku.

Doing that alleviated the problem with the buildpack. Have you done any research into what file structure Heroku expects for the app of your type?

Ah! I just scrolled down on the stackoverflow link and saw you solved it. Congrats!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants