-
Notifications
You must be signed in to change notification settings - Fork 0
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
Fatal error when deploying production: LoadError: cannot load such file -- rubocop/rake_task #4
Comments
cap production deploy
: LoadError: cannot load such file -- rubocop/rake_task
The configuration looks identical to Cascade Assets where we are not hitting this error. I wonder if Rails 5 changed the way it loads libraries so that it now preloads all lib/tasks files. If it were to do something like this, it would explain why it executes |
Try moving the
|
I think the explanation is in here somewhere: |
After a little research, I haven't come across any good workarounds. It's hard to find anyone reporting a similar issue from what I can tell. I am not familiar with capistrano at all or configuring deployment. The temporary resolution at this point is just to remove the |
That works for me for now. Leave this issue open and I expect an answer will turn up eventually. |
Came across this again in Newsroom, which is also running Rails 5. I resolved it by following the recommendation in this issue to move the |
For anyone that ends up here I found this an acceptable solution.
|
When trying to run
cap production deploy
for PR #3 I got an error on the stepdeploy:assets:precompile
. It's trying to runrake test
when it shouldn't.Error:
The text was updated successfully, but these errors were encountered: