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 push rejected, no Cedar-supported app detected #6

Closed
ghiculescu opened this issue Mar 20, 2013 · 8 comments
Closed

Heroku push rejected, no Cedar-supported app detected #6

ghiculescu opened this issue Mar 20, 2013 · 8 comments

Comments

@ghiculescu
Copy link

I'm seeing this output when I try to push to Heroku today. (I wasn't getting this problem last time I pushed, about three days ago.)

[master 88b57ad] test
 2 files changed, 2 insertions(+), 1 deletions(-)
Counting objects: 9, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (5/5), done.
Writing objects: 100% (5/5), 464 bytes, done.
Total 5 (delta 3), reused 0 (delta 0)

-----> Fetching custom git buildpack... done
 !     Heroku push rejected, no Cedar-supported app detected

My heroku:config includes this line:

BUILDPACK_URL: http://github.com/mattmanning/heroku-buildpack-ruby-jekyll.git

If I remove that (heroku config:remove BUILDPACK_URL), I can push with no issues. So I suspect it's something to do with the changes made in the last few days - though looking over them, I'm not sure what it could be. Any ideas?

@mattmanning
Copy link
Owner

Sorry about that. I merged in some changes from the upstream Ruby
buildpack. It must not be detecting your app as a Ruby app any more for
some reason. Would you mind sharing your Gemfile?

On Tue, Mar 19, 2013 at 9:38 PM, Alex Ghiculescu
notifications@github.comwrote:

I'm seeing this output when I try to push to Heroku today. (I wasn't
getting this problem last time I pushed, about three days ago.)

[master 88b57ad] test
2 files changed, 2 insertions(+), 1 deletions(-)
Counting objects: 9, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (5/5), done.
Writing objects: 100% (5/5), 464 bytes, done.
Total 5 (delta 3), reused 0 (delta 0)

-----> Fetching custom git buildpack... done
! Heroku push rejected, no Cedar-supported app detected

My heroku:config includes this line:

BUILDPACK_URL: http://github.com/mattmanning/heroku-buildpack-ruby-jekyll.git

If I remove that (heroku config:remove BUILDPACK_URL), I can push with no
issues. So I suspect it's something to do with the changes made in the last
few days - though looking over them, I'm not sure what it could be. Any
ideas?


Reply to this email directly or view it on GitHubhttps://github.com//issues/6
.

@ghiculescu
Copy link
Author

Gemfile:

source 'https://rubygems.org'

gem 'rack-jekyll', :git => 'https://github.com/adaoraul/rack-jekyll.git'
gem 'unicorn'
gem 'kramdown'
gem 'yui-compressor'

Gemfile.lock:

GIT
  remote: https://github.com/adaoraul/rack-jekyll.git
  revision: 9ab9614be6a284dfd8e8c8e0c79011221c2ac8d9
  specs:
    rack-jekyll (0.4.0)
      jekyll (~> 0.11.0)
      rack (~> 1.4.1)

GEM
  remote: https://rubygems.org/
  specs:
    POpen4 (0.1.4)
      Platform (>= 0.4.0)
      open4
    Platform (0.4.0)
    albino (1.3.3)
      posix-spawn (>= 0.3.6)
    classifier (1.3.3)
      fast-stemmer (>= 1.0.0)
    directory_watcher (1.4.1)
    fast-stemmer (1.0.2)
    jekyll (0.11.0)
      albino (>= 1.3.2)
      classifier (>= 1.3.1)
      directory_watcher (>= 1.1.1)
      kramdown (>= 0.13.2)
      liquid (>= 1.9.0)
      maruku (>= 0.5.9)
    kgio (2.8.0)
    kramdown (0.14.2)
    liquid (2.4.1)
    maruku (0.6.1)
      syntax (>= 1.0.0)
    open4 (1.3.0)
    posix-spawn (0.3.6)
    rack (1.4.4)
    raindrops (0.10.0)
    syntax (1.0.0)
    unicorn (4.5.0)
      kgio (~> 2.6)
      rack
      raindrops (~> 0.7)
    yui-compressor (0.9.6)
      POpen4 (>= 0.1.4)

PLATFORMS
  ruby

DEPENDENCIES
  kramdown
  rack-jekyll!
  unicorn
  yui-compressor

@mattmanning
Copy link
Owner

I just undid the most recent changes on the buildpack. Can you try your deploy again?

Sorry for the problems. I'll do more testing next time.

@ghiculescu
Copy link
Author

No worries. Thanks for your prompt help, I really appreciate it :)

That seems to have fixed it. Do you think I should report it to the Heroku guys? I don't know very much about buildpacks so I'm not sure what went wrong :/

For the record, I'm trying to deploy this repo: https://github.com/ghiculescu/payaus-docs
So if you do want to test it yourself you're welcome to. I probably should have mentioned that from the start...

@krstffr
Copy link

krstffr commented Apr 24, 2013

I get the same error. Did you guys find a solution?

Thanks.

@ssaunier
Copy link

I had the same error, then I added a Gemfile:

source 'https://rubygems.org'
ruby '2.1.2'

gem 'redcarpet'
gem 'jekyll'

Now when I git push heroku master I get:

-----> Fetching custom git buildpack... done
-----> Ruby app detected
 !
 !     Invalid RUBY_VERSION specified: ruby-2.1.2
 !     Valid versions: ruby-2.0.0, ruby-1.9.3, ruby-1.9.2, ruby-1.8.7, ruby-1.9.3-jruby-1.7.0, ruby-1.8.7-jruby-1.7.0, ruby-1.9.3-jruby-1.7.1, ruby-1.8.7-jruby-1.7.1, ruby-1.9.3-rbx-2.0.0dev, ruby-1.8.7-rbx-2.0.0dev
 !

 !     Push rejected, failed to compile Ruby app

I don't know where to look in the code, but I would be happy to help fix this issue.

@mytharcher
Copy link

Same with you @ssaunier . If any ruby version specified in Gemfile not match to Heroku provided ones, this would happen.

I got another error because the ruby version not specified:

remote:        Gem::InstallError: classifier-reborn requires Ruby version >= 1.9.3.
remote:        An error occurred while installing classifier-reborn (2.0.2), and Bundler cannot
remote:        continue.
remote:        Make sure that `gem install classifier-reborn -v '2.0.2'` succeeds before
remote:        bundling.
remote:  !
remote:  !     Failed to install gems via Bundler.
remote:  !
remote: 
remote:  !     Push rejected, failed to compile Ruby/Rack app
remote: 
remote: Verifying deploy...
remote: 
remote: !   Push rejected to xxx.
remote: 
To git@heroku.com:xxx.git
 ! [remote rejected] master -> master (pre-receive hook declined)

and another error after specified ruby as 2.0.0:

remote:        env: bundle: No such file or directory
remote:  !
remote:  !     Failed to generate site with jekyll.
remote:  !
remote: 
remote:  !     Push rejected, failed to compile Ruby/Rack app
remote: 
remote: Verifying deploy...
remote: 
remote: !   Push rejected to xxx.
remote: 
To git@heroku.com:xxx.git
 ! [remote rejected] master -> master (pre-receive hook declined)

No idea how to fix this. Please help.

@mattmanning
Copy link
Owner

Any repo with a Gemfile.lock should get detected as a ruby app by Heroku.

I have updated the buildpack with the latest upstream Heroku Ruby buildpack and the current jekyll subcommands. I'm closing this issue, but please feel free to open a new one if you have further problems.

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

5 participants