2013-02-10 94 views
1

我試圖部署我的應用程序並獲取與capistrano deploy:cold此錯誤。有任何想法嗎? 我的環境包括ubuntu 12.10postgresqlrbenv-installer,unicorn部署到vps

* 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 

回答

0

找到解決在deploy.rb的頂部添加此需要「捆綁/ Capistrano的「set:default_environment,{'PATH'=>」$ HOME/.rbenv/shims:$ HOME/.rbenv/bin:$ PATH「}

1

嘗試登錄你的遠程服務器,並找出是否有安裝了bungler,像這樣:

sudo gem install bundler 
+0

找到解決方案在deploy.rb頂部添加此項 require」 bundler/capistrano「 set:default_environment,{ 'PATH'=>「$ HOME/.rbenv/shims:$ HOME/.rbenv/bin:$ PATH」 } – Anton 2013-02-10 11:53:22

+0

我很高興聽到它。祝你的程序好運。 – 2013-02-10 11:55:40

相關問題