【问题标题】:deploying to a vps部署到 vps
【发布时间】:2013-02-10 11:29:31
【问题描述】:

我正在尝试部署我的应用程序并使用capistrano deploy:cold 收到此错误。有任何想法吗? 我的环境包括ubuntu 12.10postgresqlrbenv-installerunicorn

 * 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

【问题讨论】:

    标签: ruby-on-rails capistrano unicorn rbenv


    【解决方案1】:

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

    sudo gem install bundler
    

    【讨论】:

    • 找到解决方案在 deploy.rb 的顶部添加这个 require "bundler/capistrano" set :default_environment, { 'PATH' => "$HOME/.rbenv/shims:$HOME/.rbenv/ bin:$PATH" }
    • 我很高兴听到这个消息。祝你的应用好运。
    【解决方案2】:

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

    【讨论】:

      猜你喜欢
      • 2013-04-05
      • 2012-05-23
      • 2012-06-17
      • 2014-08-14
      • 1970-01-01
      • 2016-08-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多