我试图部署我的应用程序并获取与capistrano deploy:cold
此错误。有任何想法吗? 我的环境包括ubuntu 12.10
,postgresql
,rbenv-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
找到解决方案在deploy.rb顶部添加此项 require” bundler/capistrano“ set:default_environment,{ 'PATH'=>“$ HOME/.rbenv/shims:$ HOME/.rbenv/bin:$ PATH” } – Anton 2013-02-10 11:53:22
我很高兴听到它。祝你的程序好运。 – 2013-02-10 11:55:40