Error on deploy:assets:prepare
Opened this issue · 4 comments
If I try to precompile my assets locally cause of a lack of hardware on my DigitalOcean-Server, I always get this error:
00:11 deploy:assets:prepare
01 $HOME/.rbenv/bin/rbenv exec bundle exec rake assets:clean
(Backtrace restricted to imported tasks)
cap aborted!
Errno::ENOENT: No such file or directory - ( export RBENV_ROOT="$HOME/.rbenv" RBENV_VERSION="2.6.5" RAILS_ENV="production" ; $HOME/.rbenv/bin/rbenv exec bundle exec rake assets:clean )
Tasks: TOP => deploy:assets:prepare
(See full trace by running task with --trace)
The deploy has failed with an error: No such file or directory - ( export RBENV_ROOT="$HOME/.rbenv" RBENV_VERSION="2.6.5" RAILS_ENV="production" ; $HOME/.rbenv/bin/rbenv exec bundle exec rake assets:clean )
I checked my server, the directory exists, so I have no clue why this error gets thrown. I would love to use the gem but I can't seem to figure out why this happens :/.
The rest of the configuration is like described in the Readme.
I had the same issue
Same here.
Note that this is most likely happening because you are not using rbenv locally. This happened to me with rvm as capsitrano-rvm apparently also tries to use rvm with run_locally
(capistrano/rvm#62).
Still running into this issue. Note that I'm using rbenv both locally and on the remote server, except on the server it's in /usr/local/rbenv/bin/rbenv
while locally it's in /usr/local/bin/rbenv
.
For some reason the assets:prepare
bit it looking at the wrong location, not sure why:
deploy:assets:prepare
01 RBENV_ROOT=/usr/local/rbenv /usr/local/rbenv/bin/rbenv exec bundle exec rake assets:clean
01 sh: /usr/local/rbenv/bin/rbenv: No such file or directory