我是厨师新手,面临一个问题。
每次我运行任何刀菜谱命令时,我都必须明确提供菜谱的路径,-o /path/to/cookbook
否则会出错,提示找不到菜谱。请找到以下命令:
$ knife cookbook upload getting-started
ERROR: Could not find cookbook getting-started in your cookbook path, skipping it
ERROR: Failed to upload 1 cookbook.
$ knife cookbook upload getting-started -o /home/chefuser/chef11/chef-repo/cookbooks/
Uploading getting-started [0.4.0]
Uploaded 1 cookbook.
问题:
我想知道/列出食谱的默认搜索路径,并且需要知道如何修改它。
另外,为什么它不查看食谱路径而我必须明确提供?
谢谢。