开发者

Capistrano/Passenger deploy failing due to different gem versions

I'm trying to deploy my Rails app to my webhost (DreamHost) using Capistrano but it keeps failing because the various gems installed on the server are of a different version.

I can work around this by manually installing, one by one, the specific gem version when Capistrano complains about it.

There must be a better way.. is there something I can do开发者_运维技巧 so that when deploying, it automatically installs the different versions if required?


Yes there is, and it's baked right into bundler...

You just need to add require 'bundler/capistrano' to your cap file and all should be fine from then on.

If all is not well you can try cap bundle:install manually to clear things up before install.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜