简体   繁体   中英

Bundler error when trying to deploy with Capistrano

I am trying to deploy to a remote VPS via Capistrano 3. The VPS tuns on Ubuntu 12.04, Apache, and rvm. When I use cap production deploy on my local computer, it begins to deploy, but then throws a bundler error and quits:

An error occurred while installing minitest (4.7.5), and Bundler cannot continue.

See here for documentation: https://gist.github.com/atkolkma/9551199

gem install minitest -v 4.7.5 Executes successfully. But if I run gem -v minitest It says I have version 2.2.2 ! This happens on BOTH machines. Could it be rvm that is doing this? A bundler issue? I have no idea.

UPDATE: I installed RVM, Ruby and Rails as root on the VPS. I am pretty sure this was causing permissions or path problems for Capistrano when trying to bundle my project. I will try to rebuild the VPS with a deployer or rails user. I'll update when I solve this problem.

UPDATE: I installed RVM, Ruby and Rails as root on the VPS. I am pretty sure this was causing permissions or path problems for Capistrano when trying to bundle my project. I will try to rebuild the VPS with a deployer or rails user. I'll update when I solve this problem.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM