本文介绍了Rails橡胶-找不到盖命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Rubber将示例应用程序部署到Amazon EC2。我还关注着Rubber上的railscasts。

I'm trying to deploy my sample application to Amazon EC2 using Rubber. I'm also following the railscasts episode on Rubber.

到目前为止,我已经安装了gem,运行了vulcaznize命令,并对rubber.yml文件进行了修改。但是,当我尝试运行Capistrano命令( cap rubber:create_staging )时,出现 cap:命令未找到错误。我尝试运行 rbenv rehash 命令,但再次失败,并给了我 rbenv:命令未找到。

So far I've installed the gem, ran the vulcaznize command, and made modifications to rubber.yml file. When I tried to run a Capistrano command (cap rubber:create_staging), however, I get the cap: command not found error. I've tried to run the rbenv rehash command but it again fails and gives me a rbenv: command not found.

如果您有解决办法,我将不胜感激。如果您想知道的话,我正在Windows 7上运行。

If you have any idea how to fix this I would appreciate it greatly. In case you want to know, I'm running on Windows 7.

推荐答案

通过手动键入capistrano解决了此问题,方法是键入 gem安装capistrano 。我觉得这很奇怪,因为在安装橡胶时应该已经自动安装了capistrano。无论如何,它似乎现在已经解决了这个问题。

Solved this problem by installing capistrano manually by typing gem install capistrano in the console. I find this weird because capistrano should've been automatically installed while installing rubber. Anyway it seems to have solved the problem for now.

这篇关于Rails橡胶-找不到盖命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-21 09:05