Could not detect rake tasks

Viewed 6788
   ensure you can run `$ bundle exec rake -P` against your app with no environment variables present
   and using the production group of your Gemfile.
   This may be intentional, if you expected rake tasks to be run
   cancel the build (CTRL+C) and fix the error then commit the fix:
   rake aborted!

I don't have any rake tasks that I'd like to run automatically. Should I just ignore this warning?

5 Answers

Old question, but I ran into this issue just now, and there is a new fix for it. If you're using Ruby version <= 2.6.1, and Bundler 2.0.1, update Ruby to 2.6.3 ($ rvm install "ruby-2.6.3") and Bundler to 2.0.2 ($ gem install bundler '2.0.2'). Make sure to specify the new Ruby version in your Gemfile.

Unfortunately I can't tell you why this works, but it's worked for 3 other people on my team so far, so it's worth a shot.

Related