2014-07-24 13 views
7

Hızlı soru. Yemek kitabımın bağımlılıklarını yönetmek için Berkshelf'i ne zaman kullanırsam, kendi yemek kitaplarım donar? Çözmek için bir yolu var mı?Yemek kitaplarımı dondurma nedir?

knife cookbook upload myNodeApp 

Uploading myNodeApp [0.1.0] 
ERROR: Version 0.1.0 of cookbook myNodeApp is frozen. Use --force to override. 
WARNING: Not updating version constraints for LighthouseApi in the environment as the cookbook is frozen. 
ERROR: Failed to upload 1 cookbook. 

güncelleme:

burada Berksfile bu.

source "https://api.berkshelf.com" 

metadata 

cookbook 'apt', '~> 2.4.0' 
cookbook 'nginx', '~> 2.7.4' 
cookbook 'redisio', '~> 1.7.1' 
cookbook 'mysql', '~> 5.3.6' 
cookbook 'nodejs', '~> 1.3.0' 
cookbook 'npm', '~> 0.1.2' 
cookbook 'mongodb', '~> 0.16.1' 

cevap

13

Berkshelf, yükleme sırasında otomatik olarak yemek kitaplarını dondurur. --no-freeze seçeneğini kullanarak bunu devre dışı bırakabilirsiniz.

$ berks help upload 
Usage: 
    berks upload [COOKBOOKS] 

Options: 
    -b, [--berksfile=PATH]        # Path to a Berksfile to operate off of. 
    -e, [--except=one two three]       # Exclude cookbooks that are in these groups. 
    -o, [--only=one two three]       # Only cookbooks that are in these groups. 
     [--no-freeze], [--no-no-freeze]     # Do not freeze uploaded cookbook(s). 
     [--force]          # Upload all cookbook(s) even if a frozen one exists on the Chef Server. 
     [--ssl-verify], [--no-ssl-verify]    # Disable/Enable SSL verification when uploading cookbooks. 
    -s, [--skip-syntax-check], [--no-skip-syntax-check] # Skip Ruby syntax check when uploading cookbooks. 
     [--halt-on-frozen], [--no-halt-on-frozen]  # Exit with a non zero exit code if the Chef Server already has the version of the cookbook(s). 
    -c, [--config=PATH]         # Path to Berkshelf configuration to use. 
    -F, [--format=FORMAT]        # Output format to use. 
                 # Default: human 
    -q, [--quiet], [--no-quiet]       # Silence all informational output. 
    -d, [--debug], [--no-debug]       # Output debug information 
+0

, Berksfile sayfamda "meta veri" ekliyor ve bu da yemek kitabımı dondurmasına neden oluyor? – YarGnawh

+2

üzgünüm, aptal soru. Ben Berkshelf kullanıyorum, ben bıçak yemek kitabı yükleme 'kullanmamalıyım? – YarGnawh

+8

Berkshelf kullanıyorsanız, yemek kitaplarını yüklemek için 'knife' kullanmamalısınız. – sethvargo

İlgili konular