2016-09-24 31 views
0

我有问题得到的Git插件刀-spork提交并推向它的回购。厨师刀spork Git插件没有提交或推动

下面是从knife spork info输出:

{"version_change_threshold"=>2, 
"preserve_constraint_operators"=>true, 
"always_promote_remote"=>true, 
"skip_berkshelf"=>false, 
"role_match_file_name"=>true, 
"role_safe_delete"=>true, 
"json_options"=>{"indent"=>" "}, 
"plugins"=>{ 
    "git"=>{ 
    "auto_push"=>true, 
    "remote"=>"origin", 
    "branch"=>"master" 
    } 
}} 

[...] 
KnifeSpork::Plugins::Git: enabled 
[...] 

当我做了knife spork bump COOKBOOK minor

Git: Pulling latest changes from /path/to/chef-repo/cookbooks/COOKBOOK 
Pulling latest changes from git submodules (if any) 
Successfully bumped base to v0.2.0! 
Git add'ing /path/to/chef-repo/cookbooks/COOKBOOK/metadata.rb 

这不仅增加了它...然后我做knife spork upload COOKBOOK

Git: Pulling latest changes from /path/to/chef-repo/cookbooks/COOKBOOK 
Pulling latest changes from git submodules (if any) 
Freezing COOKBOOK at 0.2.0... 
Successfully uploaded [email protected]! 

哪将食谱上传到厨师服务器,但不是c ommit到回购或设法推...而且也没有错误输出:/

回答

0

好吧没错我误解了流...

所以你必须先创建环境:

knife spork environment create production 
knife spork environment create development 

然后,一旦食谱准备的环境中,你promote

knife spork promote development COOKBOOK 

然后它承诺,并将其推

+0

如果您刚开始与厨师合作,我强烈建议您查看策略工作流程而不是Spork。它非常相似,但有一些专门构建的工作流程工具。 – coderanger