Skip to content
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

Error on deploy:assets:prepare #34

Open
alliedarmour opened this issue Oct 15, 2019 · 4 comments
Open

Error on deploy:assets:prepare #34

alliedarmour opened this issue Oct 15, 2019 · 4 comments

Comments

@alliedarmour
Copy link

alliedarmour commented Oct 15, 2019

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.

@scarroll32
Copy link

I had the same issue

@danielristic
Copy link

Same here.

@thbwd
Copy link

thbwd commented Apr 25, 2020

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).

@danielristic
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants