简体   繁体   English

Capistrano 3无法识别捆绑和耙式命令

[英]Bundle and rake commands are not recognized with Capistrano 3

I have installed Capistrano 3 and I'm not able to get my app to call bundle install and precompile my assets on deploy. 我已经安装了Capistrano 3,但无法让我的应用调用bundle install并在部署时预编译我的资产。

I've seen that I have to configure my environment for RVM there http://rvm.io/deployment/capistrano#environment 我已经看到必须在http://rvm.io/deployment/capistrano#environment上为RVM配置我的环境

But I was wondering, I have a dev computer A, and a deployment computer B, which both have RVM user-installed. 但是我想知道,我是否拥有一台开发计算机A和一台部署计算机B,它们都已安装了RVM。

Should I configure Capistrano to use RVM on my dev computer or on the deployment computer? 我应该配置Capistrano在我的开发计算机上还是在部署计算机上使用RVM吗?

Does your Capfile have the following? 您的Capfile是否包含以下内容?

require 'capistrano/rails'
require 'capistrano/rvm'

capistrano/rails includes dependencies for bundler, assets and migrations. capistrano / rails包括捆绑程序,资产和迁移的依赖项。

https://github.com/capistrano/rails/blob/master/lib/capistrano/rails.rb https://github.com/capistrano/rails/blob/master/lib/capistrano/rails.rb
https://github.com/capistrano/rvm https://github.com/capistrano/rvm

Also make sure to read the readme on capistrano/rvm, as you need to have the correct capistrano/bundler version. 另外,请确保阅读capistrano / rvm上的自述文件,因为您需要具有正确的capistrano / bundler版本。

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

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