[英]Deploying error with capistrano: “bundler: not executable: cap”
I am supposed to work on a quite antique Ruby On Rails project to make some minor (mostly HTML and CSS) changes on some webpages. 我应该在一个非常古老的Ruby On Rails项目上工作,在一些网页上做一些小的(主要是HTML和CSS)更改。 I did not work with Ruby On Rails before and I am just getting into it.
我以前没有使用过Ruby On Rails而且我刚刚进入它。
I have cloned the project via git from github and installed all gems via 'bundler install'. 我从github通过git克隆了项目,并通过'bundler install'安装了所有宝石。 Note that I am using an old version of Ruby (1.8.7) since I was told the project would not work with a newer version.
请注意,我使用旧版本的Ruby(1.8.7),因为我被告知该项目不适用于较新版本。 Note also I am on Windows 7 and the project was built with Mac OS X.
另请注意,我使用的是Windows 7,该项目是使用Mac OS X构建的。
Now I am trying to get the changes I made to the live site (after commiting and pushing the changes to the git repository) with Capistrano (Installed and Version 2.8.0) which should be possible with 现在我试图通过Capistrano(已安装和版本2.8.0)对实时站点(在提交并将更改推送到git存储库之后)进行更改,这应该是可能的
bundle exec cap production deploy
However when I try this I just get: 但是,当我尝试这个时,我得到:
bundler: not executable: cap
Any ideas what is going wrong here? 任何想法在这里出了什么问题? Thanks alot in advance!
非常感谢提前!
Kind regards, Peter 亲切的问候,彼得
Generally, capisrano
is not defined as a gem in a project's Gemfile
. 通常,
capisrano
未在项目的Gemfile
定义为gem。 Try installing the gem with gem install capistrano
. 尝试使用
gem install capistrano
安装gem。
You can also check if Capistrano is installed on your system by running cap -T
in your project folder. 您还可以通过在项目文件夹中运行
cap -T
来检查系统上是否安装了Capistrano。 This should give you a list of all tasks in that project. 这应该为您提供该项目中所有任务的列表。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.