新手问题 capistrano 部署出现问题

xiaoxiao · 2013年06月29日 · 最后由 xiaoxiao 回复于 2013年07月04日 · 3897 次阅读

根据http://ruby-china.org/topics/6424上的步骤 修改完 deploy.rb 运行 cap deploy:setup cap deploy:check 都没提示错误 cap deploy:migrations 出现错误如下 executing command ** The --deployment flag requires a Gemfile.lock. Please make sure you have checked ** your Gemfile.lock into version control before deploying. 这是什么情况,请指教

部署标志需要的 Gemfile.lock 的。请确保你已经检查您的 Gemfile.lock 到版本控制,然后再部署。

具体怎么操作

我 bundle install --deployment 一下出现以下东西 You are trying to install in deployment mode after changing your Gemfile. Run bundle install elsewhere and add the updated Gemfile.lock to version control.

git add Gemfile.lock
git commit -m "add Gemfile.lock"
git push

我使用的是 svn 不是 git

bundle install --no-deployment

已经解决,thx

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