- Plesk for Linux
- The custom Ruby version is installed.
bundle -vcommand fails with the following error:
# .rbenv/shims/bundle -v
rbenv: bundle: command not found
The `bundle' command exists in these Ruby versions:
- However, the bundle file exists under domains directory:
# ls -l /var/www/vhosts/example.com/.rbenv/shims/bundle
-rwxr-xr-x 1 example psacln 411 Sep 23 00:24 /var/www/vhosts/example.com/.rbenv/shims/bundle
Incorrect configuration of custom Ruby version.
Follow the steps to reinstall custom Ruby:
Connect to the server using SSH.
Run the following commands:
# ruby-build 2.4.2 /opt/plesk/ruby/2.4.2
# /opt/plesk/ruby/2.4.2/bin/gem install bundler
# /opt/plesk/ruby/2.4.2/bin/gem install bundle
# plesk sbin rubymng register 2.4.2 /opt/plesk/ruby/2.4.2
Login to Plesk.
Go to Plesk > Extensions > Ruby and press "Refresh".
Navigate to Domains > example.com > Ruby.
Select the newly installed Ruby version by clicking on the current version.