rake aborted: LoadError: cannot load such file — /home/deploy/myapp/config/application
up vote
0
down vote
favorite
I am getting following error while running command
bundle exec rake db:migrate --trace
I am using rvm and ruby version is 2.3.1.
Here is output
deploy@localhost:~/my-sources$ bundle exec rake db:migrate
--trace rake aborted! LoadError: cannot load such file -- /home/deploy/myapp/config/application
/home/deploy/myapp-sources/Rakefile:4:in `require'
/home/deploy/myapp-sources/Rakefile:4:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.3.1@global/gems/rake-10.4.2/lib/rake/rake_module.rb:28:in `load'
/usr/local/rvm/gems/ruby-2.3.1@global/gems/rake-10.4.2/lib/rake/rake_module.rb:28:in `load_rakefile'
/usr/local/rvm/gems/ruby-2.3.1@global/gems/rake-10.4.2/lib/rake/application.rb:689:in `raw_load_rakefile'
/usr/local/rvm/gems/ruby-2.3.1@global/gems/rake-10.4.2/lib/rake/application.rb:94:in `block in load_rakefile'
/usr/local/rvm/gems/ruby-2.3.1@global/gems/rake-10.4.2/lib/rake/application.rb:176:in `standard_exception_handling'
/usr/local/rvm/gems/ruby-2.3.1@global/gems/rake-10.4.2/lib/rake/application.rb:93:in `load_rakefile'
/usr/local/rvm/gems/ruby-2.3.1@global/gems/rake-10.4.2/lib/rake/application.rb:77:in `block in run'
/usr/local/rvm/gems/ruby-2.3.1@global/gems/rake-10.4.2/lib/rake/application.rb:176:in `standard_exception_handling'
/usr/local/rvm/gems/ruby-2.3.1@global/gems/rake-10.4.2/lib/rake/application.rb:75:in `run'
/usr/local/rvm/gems/ruby-2.3.1@global/gems/rake-10.4.2/bin/rake:33:in `<top (required)>' /usr/local/rvm/rubies/ruby-2.3.1/bin/rake:23:in
`load' /usr/local/rvm/rubies/ruby-2.3.1/bin/rake:23:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.3.1/gems/bundler-1.17.1/lib/bundler/cli/exec.rb:74:in `load'
/usr/local/rvm/gems/ruby-2.3.1/gems/bundler-1.17.1/lib/bundler/cli/exec.rb:74:in `kernel_load'
/usr/local/rvm/gems/ruby-2.3.1/gems/bundler-1.17.1/lib/bundler/cli/exec.rb:28:in `run'
/usr/local/rvm/gems/ruby-2.3.1/gems/bundler-1.17.1/lib/bundler/cli.rb:463:in `exec'
/usr/local/rvm/gems/ruby-2.3.1/gems/bundler-1.17.1/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/usr/local/rvm/gems/ruby-2.3.1/gems/bundler-1.17.1/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
/usr/local/rvm/gems/ruby-2.3.1/gems/bundler-1.17.1/lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch'
/usr/local/rvm/gems/ruby-2.3.1/gems/bundler-1.17.1/lib/bundler/cli.rb:27:in `dispatch'
/usr/local/rvm/gems/ruby-2.3.1/gems/bundler-1.17.1/lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start'
/usr/local/rvm/gems/ruby-2.3.1/gems/bundler-1.17.1/lib/bundler/cli.rb:18:in `start'
/usr/local/rvm/gems/ruby-2.3.1/gems/bundler-1.17.1/exe/bundle:30:in `block in <top (required)>'
/usr/local/rvm/gems/ruby-2.3.1/gems/bundler-1.17.1/lib/bundler/friendly_errors.rb:124:in `with_friendly_errors'
/usr/local/rvm/gems/ruby-2.3.1/gems/bundler-1.17.1/exe/bundle:22:in `<top (required)>' /usr/local/rvm/gems/ruby-2.3.1/bin/bundle:23:in `load' /usr/local/rvm/gems/ruby-2.3.1/bin/bundle:23:in `<main>'
/usr/local/rvm/gems/ruby-2.3.1/bin/ruby_executable_hooks:15:in `eval'
/usr/local/rvm/gems/ruby-2.3.1/bin/ruby_executable_hooks:15:in
`<main>'
ruby-on-rails ruby rubygems
add a comment |
up vote
0
down vote
favorite
I am getting following error while running command
bundle exec rake db:migrate --trace
I am using rvm and ruby version is 2.3.1.
Here is output
deploy@localhost:~/my-sources$ bundle exec rake db:migrate
--trace rake aborted! LoadError: cannot load such file -- /home/deploy/myapp/config/application
/home/deploy/myapp-sources/Rakefile:4:in `require'
/home/deploy/myapp-sources/Rakefile:4:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.3.1@global/gems/rake-10.4.2/lib/rake/rake_module.rb:28:in `load'
/usr/local/rvm/gems/ruby-2.3.1@global/gems/rake-10.4.2/lib/rake/rake_module.rb:28:in `load_rakefile'
/usr/local/rvm/gems/ruby-2.3.1@global/gems/rake-10.4.2/lib/rake/application.rb:689:in `raw_load_rakefile'
/usr/local/rvm/gems/ruby-2.3.1@global/gems/rake-10.4.2/lib/rake/application.rb:94:in `block in load_rakefile'
/usr/local/rvm/gems/ruby-2.3.1@global/gems/rake-10.4.2/lib/rake/application.rb:176:in `standard_exception_handling'
/usr/local/rvm/gems/ruby-2.3.1@global/gems/rake-10.4.2/lib/rake/application.rb:93:in `load_rakefile'
/usr/local/rvm/gems/ruby-2.3.1@global/gems/rake-10.4.2/lib/rake/application.rb:77:in `block in run'
/usr/local/rvm/gems/ruby-2.3.1@global/gems/rake-10.4.2/lib/rake/application.rb:176:in `standard_exception_handling'
/usr/local/rvm/gems/ruby-2.3.1@global/gems/rake-10.4.2/lib/rake/application.rb:75:in `run'
/usr/local/rvm/gems/ruby-2.3.1@global/gems/rake-10.4.2/bin/rake:33:in `<top (required)>' /usr/local/rvm/rubies/ruby-2.3.1/bin/rake:23:in
`load' /usr/local/rvm/rubies/ruby-2.3.1/bin/rake:23:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.3.1/gems/bundler-1.17.1/lib/bundler/cli/exec.rb:74:in `load'
/usr/local/rvm/gems/ruby-2.3.1/gems/bundler-1.17.1/lib/bundler/cli/exec.rb:74:in `kernel_load'
/usr/local/rvm/gems/ruby-2.3.1/gems/bundler-1.17.1/lib/bundler/cli/exec.rb:28:in `run'
/usr/local/rvm/gems/ruby-2.3.1/gems/bundler-1.17.1/lib/bundler/cli.rb:463:in `exec'
/usr/local/rvm/gems/ruby-2.3.1/gems/bundler-1.17.1/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/usr/local/rvm/gems/ruby-2.3.1/gems/bundler-1.17.1/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
/usr/local/rvm/gems/ruby-2.3.1/gems/bundler-1.17.1/lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch'
/usr/local/rvm/gems/ruby-2.3.1/gems/bundler-1.17.1/lib/bundler/cli.rb:27:in `dispatch'
/usr/local/rvm/gems/ruby-2.3.1/gems/bundler-1.17.1/lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start'
/usr/local/rvm/gems/ruby-2.3.1/gems/bundler-1.17.1/lib/bundler/cli.rb:18:in `start'
/usr/local/rvm/gems/ruby-2.3.1/gems/bundler-1.17.1/exe/bundle:30:in `block in <top (required)>'
/usr/local/rvm/gems/ruby-2.3.1/gems/bundler-1.17.1/lib/bundler/friendly_errors.rb:124:in `with_friendly_errors'
/usr/local/rvm/gems/ruby-2.3.1/gems/bundler-1.17.1/exe/bundle:22:in `<top (required)>' /usr/local/rvm/gems/ruby-2.3.1/bin/bundle:23:in `load' /usr/local/rvm/gems/ruby-2.3.1/bin/bundle:23:in `<main>'
/usr/local/rvm/gems/ruby-2.3.1/bin/ruby_executable_hooks:15:in `eval'
/usr/local/rvm/gems/ruby-2.3.1/bin/ruby_executable_hooks:15:in
`<main>'
ruby-on-rails ruby rubygems
Please edit your question to use a code block instead of a blockquote.
– anothermh
Nov 11 at 16:08
Why the directory you're supposedly running this from saymy-sources
, then the first line of the stack trace says/home/deploy/myapp
, and then lines 2-3 say/home/deploy/myapp-sources
? Were you running a command from the wrong folder? Are you referencing one application from inside the other? Can you clarify what is on line 4 of theRakefile
, where you are running this from, and which folders exist?
– Tom Lord
Nov 11 at 20:50
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I am getting following error while running command
bundle exec rake db:migrate --trace
I am using rvm and ruby version is 2.3.1.
Here is output
deploy@localhost:~/my-sources$ bundle exec rake db:migrate
--trace rake aborted! LoadError: cannot load such file -- /home/deploy/myapp/config/application
/home/deploy/myapp-sources/Rakefile:4:in `require'
/home/deploy/myapp-sources/Rakefile:4:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.3.1@global/gems/rake-10.4.2/lib/rake/rake_module.rb:28:in `load'
/usr/local/rvm/gems/ruby-2.3.1@global/gems/rake-10.4.2/lib/rake/rake_module.rb:28:in `load_rakefile'
/usr/local/rvm/gems/ruby-2.3.1@global/gems/rake-10.4.2/lib/rake/application.rb:689:in `raw_load_rakefile'
/usr/local/rvm/gems/ruby-2.3.1@global/gems/rake-10.4.2/lib/rake/application.rb:94:in `block in load_rakefile'
/usr/local/rvm/gems/ruby-2.3.1@global/gems/rake-10.4.2/lib/rake/application.rb:176:in `standard_exception_handling'
/usr/local/rvm/gems/ruby-2.3.1@global/gems/rake-10.4.2/lib/rake/application.rb:93:in `load_rakefile'
/usr/local/rvm/gems/ruby-2.3.1@global/gems/rake-10.4.2/lib/rake/application.rb:77:in `block in run'
/usr/local/rvm/gems/ruby-2.3.1@global/gems/rake-10.4.2/lib/rake/application.rb:176:in `standard_exception_handling'
/usr/local/rvm/gems/ruby-2.3.1@global/gems/rake-10.4.2/lib/rake/application.rb:75:in `run'
/usr/local/rvm/gems/ruby-2.3.1@global/gems/rake-10.4.2/bin/rake:33:in `<top (required)>' /usr/local/rvm/rubies/ruby-2.3.1/bin/rake:23:in
`load' /usr/local/rvm/rubies/ruby-2.3.1/bin/rake:23:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.3.1/gems/bundler-1.17.1/lib/bundler/cli/exec.rb:74:in `load'
/usr/local/rvm/gems/ruby-2.3.1/gems/bundler-1.17.1/lib/bundler/cli/exec.rb:74:in `kernel_load'
/usr/local/rvm/gems/ruby-2.3.1/gems/bundler-1.17.1/lib/bundler/cli/exec.rb:28:in `run'
/usr/local/rvm/gems/ruby-2.3.1/gems/bundler-1.17.1/lib/bundler/cli.rb:463:in `exec'
/usr/local/rvm/gems/ruby-2.3.1/gems/bundler-1.17.1/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/usr/local/rvm/gems/ruby-2.3.1/gems/bundler-1.17.1/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
/usr/local/rvm/gems/ruby-2.3.1/gems/bundler-1.17.1/lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch'
/usr/local/rvm/gems/ruby-2.3.1/gems/bundler-1.17.1/lib/bundler/cli.rb:27:in `dispatch'
/usr/local/rvm/gems/ruby-2.3.1/gems/bundler-1.17.1/lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start'
/usr/local/rvm/gems/ruby-2.3.1/gems/bundler-1.17.1/lib/bundler/cli.rb:18:in `start'
/usr/local/rvm/gems/ruby-2.3.1/gems/bundler-1.17.1/exe/bundle:30:in `block in <top (required)>'
/usr/local/rvm/gems/ruby-2.3.1/gems/bundler-1.17.1/lib/bundler/friendly_errors.rb:124:in `with_friendly_errors'
/usr/local/rvm/gems/ruby-2.3.1/gems/bundler-1.17.1/exe/bundle:22:in `<top (required)>' /usr/local/rvm/gems/ruby-2.3.1/bin/bundle:23:in `load' /usr/local/rvm/gems/ruby-2.3.1/bin/bundle:23:in `<main>'
/usr/local/rvm/gems/ruby-2.3.1/bin/ruby_executable_hooks:15:in `eval'
/usr/local/rvm/gems/ruby-2.3.1/bin/ruby_executable_hooks:15:in
`<main>'
ruby-on-rails ruby rubygems
I am getting following error while running command
bundle exec rake db:migrate --trace
I am using rvm and ruby version is 2.3.1.
Here is output
deploy@localhost:~/my-sources$ bundle exec rake db:migrate
--trace rake aborted! LoadError: cannot load such file -- /home/deploy/myapp/config/application
/home/deploy/myapp-sources/Rakefile:4:in `require'
/home/deploy/myapp-sources/Rakefile:4:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.3.1@global/gems/rake-10.4.2/lib/rake/rake_module.rb:28:in `load'
/usr/local/rvm/gems/ruby-2.3.1@global/gems/rake-10.4.2/lib/rake/rake_module.rb:28:in `load_rakefile'
/usr/local/rvm/gems/ruby-2.3.1@global/gems/rake-10.4.2/lib/rake/application.rb:689:in `raw_load_rakefile'
/usr/local/rvm/gems/ruby-2.3.1@global/gems/rake-10.4.2/lib/rake/application.rb:94:in `block in load_rakefile'
/usr/local/rvm/gems/ruby-2.3.1@global/gems/rake-10.4.2/lib/rake/application.rb:176:in `standard_exception_handling'
/usr/local/rvm/gems/ruby-2.3.1@global/gems/rake-10.4.2/lib/rake/application.rb:93:in `load_rakefile'
/usr/local/rvm/gems/ruby-2.3.1@global/gems/rake-10.4.2/lib/rake/application.rb:77:in `block in run'
/usr/local/rvm/gems/ruby-2.3.1@global/gems/rake-10.4.2/lib/rake/application.rb:176:in `standard_exception_handling'
/usr/local/rvm/gems/ruby-2.3.1@global/gems/rake-10.4.2/lib/rake/application.rb:75:in `run'
/usr/local/rvm/gems/ruby-2.3.1@global/gems/rake-10.4.2/bin/rake:33:in `<top (required)>' /usr/local/rvm/rubies/ruby-2.3.1/bin/rake:23:in
`load' /usr/local/rvm/rubies/ruby-2.3.1/bin/rake:23:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.3.1/gems/bundler-1.17.1/lib/bundler/cli/exec.rb:74:in `load'
/usr/local/rvm/gems/ruby-2.3.1/gems/bundler-1.17.1/lib/bundler/cli/exec.rb:74:in `kernel_load'
/usr/local/rvm/gems/ruby-2.3.1/gems/bundler-1.17.1/lib/bundler/cli/exec.rb:28:in `run'
/usr/local/rvm/gems/ruby-2.3.1/gems/bundler-1.17.1/lib/bundler/cli.rb:463:in `exec'
/usr/local/rvm/gems/ruby-2.3.1/gems/bundler-1.17.1/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/usr/local/rvm/gems/ruby-2.3.1/gems/bundler-1.17.1/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
/usr/local/rvm/gems/ruby-2.3.1/gems/bundler-1.17.1/lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch'
/usr/local/rvm/gems/ruby-2.3.1/gems/bundler-1.17.1/lib/bundler/cli.rb:27:in `dispatch'
/usr/local/rvm/gems/ruby-2.3.1/gems/bundler-1.17.1/lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start'
/usr/local/rvm/gems/ruby-2.3.1/gems/bundler-1.17.1/lib/bundler/cli.rb:18:in `start'
/usr/local/rvm/gems/ruby-2.3.1/gems/bundler-1.17.1/exe/bundle:30:in `block in <top (required)>'
/usr/local/rvm/gems/ruby-2.3.1/gems/bundler-1.17.1/lib/bundler/friendly_errors.rb:124:in `with_friendly_errors'
/usr/local/rvm/gems/ruby-2.3.1/gems/bundler-1.17.1/exe/bundle:22:in `<top (required)>' /usr/local/rvm/gems/ruby-2.3.1/bin/bundle:23:in `load' /usr/local/rvm/gems/ruby-2.3.1/bin/bundle:23:in `<main>'
/usr/local/rvm/gems/ruby-2.3.1/bin/ruby_executable_hooks:15:in `eval'
/usr/local/rvm/gems/ruby-2.3.1/bin/ruby_executable_hooks:15:in
`<main>'
ruby-on-rails ruby rubygems
ruby-on-rails ruby rubygems
edited Nov 11 at 20:46
Tom Lord
14.8k22751
14.8k22751
asked Nov 11 at 9:49
Zia Qamar
682418
682418
Please edit your question to use a code block instead of a blockquote.
– anothermh
Nov 11 at 16:08
Why the directory you're supposedly running this from saymy-sources
, then the first line of the stack trace says/home/deploy/myapp
, and then lines 2-3 say/home/deploy/myapp-sources
? Were you running a command from the wrong folder? Are you referencing one application from inside the other? Can you clarify what is on line 4 of theRakefile
, where you are running this from, and which folders exist?
– Tom Lord
Nov 11 at 20:50
add a comment |
Please edit your question to use a code block instead of a blockquote.
– anothermh
Nov 11 at 16:08
Why the directory you're supposedly running this from saymy-sources
, then the first line of the stack trace says/home/deploy/myapp
, and then lines 2-3 say/home/deploy/myapp-sources
? Were you running a command from the wrong folder? Are you referencing one application from inside the other? Can you clarify what is on line 4 of theRakefile
, where you are running this from, and which folders exist?
– Tom Lord
Nov 11 at 20:50
Please edit your question to use a code block instead of a blockquote.
– anothermh
Nov 11 at 16:08
Please edit your question to use a code block instead of a blockquote.
– anothermh
Nov 11 at 16:08
Why the directory you're supposedly running this from say
my-sources
, then the first line of the stack trace says /home/deploy/myapp
, and then lines 2-3 say /home/deploy/myapp-sources
? Were you running a command from the wrong folder? Are you referencing one application from inside the other? Can you clarify what is on line 4 of the Rakefile
, where you are running this from, and which folders exist?– Tom Lord
Nov 11 at 20:50
Why the directory you're supposedly running this from say
my-sources
, then the first line of the stack trace says /home/deploy/myapp
, and then lines 2-3 say /home/deploy/myapp-sources
? Were you running a command from the wrong folder? Are you referencing one application from inside the other? Can you clarify what is on line 4 of the Rakefile
, where you are running this from, and which folders exist?– Tom Lord
Nov 11 at 20:50
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53247522%2frake-aborted-loaderror-cannot-load-such-file-home-deploy-myapp-config-appl%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Please edit your question to use a code block instead of a blockquote.
– anothermh
Nov 11 at 16:08
Why the directory you're supposedly running this from say
my-sources
, then the first line of the stack trace says/home/deploy/myapp
, and then lines 2-3 say/home/deploy/myapp-sources
? Were you running a command from the wrong folder? Are you referencing one application from inside the other? Can you clarify what is on line 4 of theRakefile
, where you are running this from, and which folders exist?– Tom Lord
Nov 11 at 20:50