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

Don't know how to build task 'default' (even though it exists) #9

Open
Morred opened this issue Aug 25, 2016 · 1 comment
Open

Don't know how to build task 'default' (even though it exists) #9

Morred opened this issue Aug 25, 2016 · 1 comment

Comments

@Morred
Copy link

Morred commented Aug 25, 2016

I have several Rack apps I'm deploying on Heroku, and when using this buildpack as described in the readme, deployments started failing with

...
rake aborted!
Don't know how to build task 'default'
...

In my Rakefile I have

begin
  require 'rspec/core/rake_task'
  RSpec::Core::RakeTask.new(:spec)
  task default: :spec
rescue LoadError
end

and when I run bundle exec rake or bundle exec rake default, it works locally (obviously not using the buildpack).

Could this be an issue with the buildpack, or am I just doing it wrong?

@wrozka
Copy link
Contributor

wrozka commented Aug 25, 2016

Probably require 'rspec/core/rake_task' raises LoadError which prevents the default task from being defined, and then because the error is ignored in the rescue block you just get the Don't know how to build task 'default'. Please make sure that your code works fine without the rescue LoadError.

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

2 participants