Closed rreinhardt9 closed 4 years ago
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:
rake db:migrate
rake db:setup
$ 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
While developing on the engine, you should be able to run rake tasks like
rake db:migrate
andrake 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: