首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >部署到vps

部署到vps
EN

Stack Overflow用户
提问于 2013-02-10 19:29:32
回答 2查看 188关注 0票数 1

我正在尝试部署我的应用程序,但在使用capistrano deploy:cold时遇到了这个错误。有什么想法吗?我的环境包括ubuntu 12.10postgresqlrbenv-installerunicorn

代码语言:javascript
复制
 * 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
EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2013-05-13 21:54:35

查找解决方案在deploy.rb顶部添加以下内容需要"bundler/capistrano“设置:default_environment,{ 'PATH‘=> "$HOME/.rbenv/shims:$HOME/.rbenv/bin:$PATH”}

票数 0
EN

Stack Overflow用户

发布于 2013-02-10 19:50:22

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

代码语言:javascript
复制
sudo gem install bundler
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/14797245

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档