部署 mina 部署 bundle 命令找不到

tank_lei · 2013年04月24日 · 最后由 tank_lei 回复于 2013年04月24日 · 5069 次阅读

配置文件: 。。。 set :user, 'tank' set :domain, '10.68.19.20' #本机 set :repository, "#{user}@#{domain}:/home/tank/projects/mina/server_git/depot.git" set :deploy_to, "/home/tank/projects/mina/server_app" set :branch, 'master' 。。。 其余的都是自动生成的。

都是在本机操作,一个文件夹作为 git 仓库,一个文件夹作为 app 服务器,一个文件夹作为本地开发。

执行 mina deploy 时出现如下错误: -----> Creating a temporary build path -----> Fetching new git commits -----> Using git branch 'master' Cloning into '.'... done. -----> Using this git commit

tang (ab490d3): > none

-----> Symlinking shared paths -----> Installing gem dependencies using Bundler bash: 行 79: bundle: 未找到命令 ! ERROR: Deploy failed. -----> Cleaning up build Unlinking current OK

! Command failed. Failed with status 19

什么情况?

看看 require rbenv 或者 rvm 的 mina 文件没

#1 楼 @hisea require 'mina/bundler' require 'mina/rails' require 'mina/git' # require 'mina/rbenv' # for rbenv support. (http://rbenv.org) require 'mina/rvm' # for rvm support. (http://rvm.io) rvm 的支持打开了

#1 楼 @hisea ok 了! 中间的相应配置没有打开! bundle 之后,在 migrate 的时候,出现: undefined method `log' for #Rails::Paths::Root:0x00000002123228

自己摸索解决了。。。

需要 登录 后方可回复, 如果你还没有账号请 注册新账号