简体   繁体   English

Rails和Capistrano缺少宝石

[英]Rails and Capistrano missing gems

I have a problem with missed gems when i tried to deploy rails app to vps. 当我尝试将Rails应用程序部署到VPS时,我缺少宝石的问题。 Can you help me? 你能帮助我吗?

capistrano.log capistrano.log

 bundle check --path /home/root/apps/appname/shared/bundle DEBUG [09094abf] [31mThe following gems are missing[0m [31m * net-scp (1.2.1)[0m [31m * sshkit (1.11.4)[0m [31m * airbrussh (1.1.1)[0m [31m * debug_inspector (0.0.2)[0m [31m * binding_of_caller (0.7.2)[0m [31m * byebug (9.0.6)[0m [31m * capistrano-harrow (0.5.3)[0m [31m * capistrano (3.6.1)[0m [31m * capistrano-bundler (1.2.0)[0m [31m * capistrano-rails (1.2.0)[0m [31m * capistrano-rvm (0.1.2)[0m [31m * capistrano3-puma (1.2.1)[0m [31m * spring (2.0.0)[0m [31m * web-console (2.3.0)[0m [33mInstall missing gems with `bundle install` 

You must use the capistrano/bundler gem to get the bundler tasks (like bundle install ) in your deploy. 您必须使用capistrano / bundler gem在部署中获取捆绑程序任务(例如bundle install )。

Basically, you must add the capistrano/bundler in your Gemfile and require it in your Capfile using the command below: 基本上,您必须使用以下命令在您的Gemfile中添加capistrano/bundler并在Capfile中要求它:

require 'capistrano/bundler'

Thereby the Capistrano will run the bundle install task during the deploy and this problem will be solved. 因此,Capistrano将在部署期间运行bundle install任务,此问题将得到解决。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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