Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 文件签入错误_Ruby On Rails_Git_Capistrano - Fatal编程技术网

Ruby on rails 文件签入错误

Ruby on rails 文件签入错误,ruby-on-rails,git,capistrano,Ruby On Rails,Git,Capistrano,部署时出现以下错误: ** [out :: 209.12.251.103:2222] You have modified your Gemfile in development but did not check ** [out :: 209.12.251.103:2222] the resulting snapshot (Gemfile.lock) into version control ** [out :: 209.12.251.103:2222] ** [out :: 209.1

部署时出现以下错误:

** [out :: 209.12.251.103:2222] You have modified your Gemfile in development but did not check ** [out :: 209.12.251.103:2222] the resulting snapshot (Gemfile.lock) into version control ** [out :: 209.12.251.103:2222] ** [out :: 209.12.251.103:2222] You have added to the Gemfile: ** [out :: 209.12.251.103:2222] * source: git://github.com/dgm/declarative_authorization.git (at nested_in) ** [out :: 209.12.251.103:2222] ** [out :: 209.12.251.103:2222] You have deleted from the Gemfile: ** [out :: 209.12.251.103:2222] * source: git://github.com/dgm/declarative_authorization.git (at nested_in) ** [out :: 209.12.251.103:2222] ** [out :: 209.12.251.103:2222] You have changed in the Gemfile: ** [out :: 209.12.251.103:2222] * declarative_authorization from `git://github.com/dgm/declarative_authorization.git (at nested_in)` to `no specified source` **[out::209.12.251.103:2222]您已在开发中修改了GEM文件,但未进行检查 **[out::209.12.251.103:2222]将生成的快照(Gemfile.lock)放入版本控制中 **[输出:209.12.251.103:2222] **[out::209.12.251.103:2222]您已将以下内容添加到文件中: **[输出:209.12.251.103:2222]*来源:git://github.com/dgm/declarative_authorization.git (在嵌套的_in处) **[输出:209.12.251.103:2222] **[out::209.12.251.103:2222]您已从文件中删除: **[输出:209.12.251.103:2222]*来源:git://github.com/dgm/declarative_authorization.git (在嵌套的_in处) **[输出:209.12.251.103:2222] **[out::209.12.251.103:2222]您已在文件中更改: **[out::209.12.251.103:2222]*来自的声明性授权`git://github.com/dgm/declarative_authorization.git (在嵌套的_in)`到`没有指定的源`
我已重新运行捆绑包安装,删除。捆绑包并重新运行。。。我的文件和锁文件都已签入。如何诊断此问题并使其再次运行?

我重新处理了有问题的gem,并将bundle更新为新版本,我还将Gemfile规范从
:branch=>:nested_in
更改为
:branch=>“combined”
。这里面的一些东西成功地取消了部署


我希望如果其他人遇到这个错误,这会有所帮助。

我在使用
github时遇到了这个问题:“user/repo”
而不是
git:'git://github.com/user/repo.git“
。更改为完整的git定义为我解决了这个问题。

工作原理…`:git=>'git://github.com/dgm/declarative_authorization.git“,:branch=>:combined`符号而不是字符串与我的文件中的其他分支规范不同。。。