简体   繁体   English

使用capistrano时,Ruby on Rails的捆绑安装失败

[英]Ruby on Rails fails on bundle install when using capistrano

I have not much knowledge of Ruby. 我对Ruby的了解不多。 I have to host a Ruby website. 我必须托管一个Ruby网站。 When I make deploy setup and check, is everything ok. 当我进行部署设置并检查时,一切正常。 But when I cap deploy I get the following error. 但是当我限制部署时,出现以下错误。

*** [deploy:update_code] rolling back
  * executing "rm -rf /var/www/lpavisit/releases/20131009211837; true"
    servers: ["x.xx.xx.xxx"]
    [5.56.61.183] executing command
    command finished in 209ms
failed: "sh -c 'cd /var/www/lpavisit/releases/20131009211837 && bundle install --without development test'" on x.xx.xx.xxx

Thanks!! 谢谢!!

Setting up a Capistrano-based deploy system is a bit complex. 设置基于Capistrano的部署系统有点复杂。 You might want to give Heroku a try until you're more familiar with Ruby. 您可能想尝试一下Heroku,直到您对Ruby更加熟悉为止。 But to continue with Capistrano, first ask it if it has everything it needs to deploy: 但是要继续使用Capistrano,请首先询问它是否具有部署所需的一切:

$ cap deploy:check

You want to see it say, You appear to have all necessary dependencies installed . 您希望看到它说: 您似乎已安装了所有必需的依赖项 Yours probably won't. 你的可能不会。 In that case, you should look for a good capistrano book or online tutorial. 在这种情况下,您应该寻找一本好的Capistrano书籍或在线教程。

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

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