1

我正在尝试部署我的应用程序并使用capistrano deploy:cold. 有任何想法吗?我的环境包括ubuntu 12.10, postgresql, rbenv-installer, unicorn.

 * executing "cd /home/deployer/apps/microv/releases/20130210112032 && bundle install --gemfile /home/deployer/apps/microv/releases/20130210112032/Gemfile --path /home/deployer/apps/microv/shared/bundle --deployment --quiet --without development test"
    servers: ["192.xx.xxx.xxx"]
    [192.xx.xxx.xxx] executing command
 ** [out :: 192.xx.xxx.xxx] sh: 1: bundle: not found
    command finished in 228ms
*** [deploy:update_code] rolling back
  * executing "rm -rf /home/deployer/apps/microv/releases/20130210112032; true"
    servers: ["192.xx.xxx.xxx"]
    [192.xx.xxx.xxx] executing command
    command finished in 227ms
failed: "sh -c 'cd /home/deployer/apps/microv/releases/20130210112032 && bundle install --gemfile /home/deployer/apps/microv/releases/20130210112032/Gemfile --path /home/deployer/apps/microv/shared/bundle --deployment --quiet --without development test'" on 192.xx.xxx.xxx
4

2 回答 2

1

尝试登录您的远程服务器并查看是否已bungler安装,如下所示:

sudo gem install bundler
于 2013-02-10T11:50:21.647 回答
0

找到解决方案在 deploy.rb 顶部添加这个 require "bundler/capistrano" set :default_environment, { 'PATH' => "$HOME/.rbenv/shims:$HOME/.rbenv/bin:$PATH" }

于 2013-05-13T13:54:34.693 回答