Skip to content

Running tasks do not work from the root of the engine #25

@rreinhardt9

Description

@rreinhardt9

While developing on the engine, you should be able to run rake tasks like rake db:migrate and rake db:setup from the root of the engine. Currently, you cannot and it returns an error that states it could not find the location of the Rakefile:

$ bundle exec rake
rake aborted!
LoadError: cannot load such file -- /Users/rossreinhardt/dev/scim_rails/test/dummy/Rakefile
/Users/rossreinhardt/dev/scim_rails/vendor/bundle/gems/railties-5.2.4.3/lib/rails/tasks/engine.rake:5:in `load'
/Users/rossreinhardt/dev/scim_rails/vendor/bundle/gems/railties-5.2.4.3/lib/rails/tasks/engine.rake:5:in `block (2 levels) in <top (required)>'
/Users/rossreinhardt/dev/scim_rails/vendor/bundle/gems/railties-5.2.4.3/lib/rails/tasks/engine.rake:4:in `block in <top (required)>'
/Users/rossreinhardt/dev/scim_rails/vendor/bundle/gems/railties-5.2.4.3/lib/rails/tasks/engine.rake:88:in `<top (required)>'
/Users/rossreinhardt/dev/scim_rails/Rakefile:18:in `load'
/Users/rossreinhardt/dev/scim_rails/Rakefile:18:in `<top (required)>'
/Users/rossreinhardt/dev/scim_rails/vendor/bundle/gems/rake-13.0.1/exe/rake:27:in `<top (required)>'
/Users/rossreinhardt/.asdf/installs/ruby/2.6.2/bin/bundle:23:in `load'
/Users/rossreinhardt/.asdf/installs/ruby/2.6.2/bin/bundle:23:in `<main>'
Tasks: TOP => load_app

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions