2016-09-24 66 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