Back

Capistrano 遇到的各种问题

发布时间: 2010-04-23 13:16:00

1. 不能在window下使用

比较神奇。。。。 看了官方文档半天,也没说不能啊。可惜试了才知道。

cap deploy:setup, :check 都没问题,到了 :update的时候,出错。 明明git配置是对的,非说错误。

google了半天,看到了有个哥们跟我的问题类似,他的SVN配置明明是对的,结果出现各种神奇错误。后来这哥们留言:“经过N久的摸索,我发现了错误所在:我用的是WINDOWS。。。”后面还加了"fun fun fun"。

沿着这个思路,在各种尝试都不行之后,我在 linux 环境下,3分钟,从无到有,一路绿灯。

无语ing. fun fun fun...


2. 所有的cap 命令都需要在特定的目录下使用。所谓的"local_folder",而不是目标文件夹。

3. 搞定了cap deploy:update 之后, :start, 结果:
[DEPRECATED] `deploy:start` is going to be removed after 2.5.9 - see http://is.gd/2BPeA


我的版本是 2.5.18, 2.3.0, 这泥马。。。哥看的可是最新的官方文档啊!~( http://www.capify.org/index.php/Getting_Started)

好吧。。。不管他。。。继续看,发现,找不到 script/spin, spawn 啥的。。。提示说
引用
rails 默认建立好了 ..spawn 文件
我晕。。。没有啊~~~ 重新建立一个新的rails项目,看了又看,确实没有啊。。。

结果。。。我看到了这页。。。看来走到 2.3.5 还有一段路要走。。。啥时候能更新文档捏?
--------------------------------------------
http://www.capify.org/index.php/How_to_use_Capistrano_with_Rails_2.3
How to use Capistrano with Rails 2.3

If your project uses Rails 2.3 or later, you must install the "irsprocessscripts" plugin in order for Capistrano to deploy the project if you still use the old inspector-reaper-spawner method to run Ruby on Rails instances. To do so, run the following command from your project's root directory:

./script/plugin install git://github.com/rails/irs_process_scripts.git
--------------------------------------------

结论是: 出现一个蓝色的小猫,比我还无辜的眼神,文字: the page does not exist!

Back