RailsCasts Pro episodes are now free!

Learn more or hide this

David Reese's Profile

GitHub User: whatcould

Site: http://code.whatcould.com

Comments by David Reese

Avatar

If you're getting NoMethodError: undefined method[]' for nil:NilClass errors in the nginx compile:

Looks like as of Chef 11, you need to add depends 'nginx' to a metadata.rb file if you do an 'include_recipe'. (In this example, the medata.rb would be in the 'main' recipe directory.) See http://tickets.opscode.com/browse/COOK-2342

This is not necessary if you just add the recipe to your runlist in the node.json file.