Upload Cookbook


#1

I have a question. Using the knife command try to upload my tutorial cookbook to the chef server. get the following error: ERROR: Could not find cookbook learn_chef_httpd in your cookbook path, skipping it
below is my screen commands and responses:
Connecting to host api.chef.io:443
Successfully verified certificates from `api.chef.io
PS C:\Users\Jeffrey\learn-chef\cookbooks> git clone https://github.com/learn-chef/learn_chef_httpd.git
Cloning into ‘learn_chef_httpd’…
remote: Counting objects: 70, done.
remote: Compressing objects: 100% (32/32), done.
remote: Total 70 (delta 19), reused 70 (delta 19), pack-reused 0U
Unpacking objects: 100% (70/70), done.
Checking connectivity… done.
PS C:\Users\Jeffrey\learn-chef\cookbooks> knife cookbook upload learn_chef_httpd
ERROR: Could not find cookbook learn_chef_httpd in your cookbook path, skipping it
Uploaded 0 cookbook.
PS C:\Users\Jeffrey\learn-chef\cookbooks>

Please let me know how to fix.

Thank you,
JR


#2

in your knife.rb file make sure you have your cookbooks in the correct path:
cookbook_path ["#{current_dir}/…/cookbooks"]


#3

Thank you that fixed my problem