Adoptable Cookbooks List

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

This recipe enables to deploy of a NodeJS app in your Vagrant box. It is complementary to Opsworks NodeJS cookebook for Opsworks deployment :
recipes vagrant-node-simple::deploy,vagrant-node-simple::install,vagrant-node-simple:start are equivalent to opsworks_nodejs:default, deploy:nodejs, and parametrization of an Opsworks app is the same as the parametrization of the environment's JSON.

As for OpsWorks, this cookbook require a server.js file at the root of your YOUR_NODE_APP_REPO, with listening on port 80.
Link

Usage :

Create your Chef repository with a Berksfile, a Vagrantfile and environments and roles directories :

create a stack with your Chef repository, Chef and Berkshelf enabled (no need for a custom JSON, everything will be in the app settings.)

create a NodeJS layer (you can also create a custom layer and add the recipe "opsworks_nodejs" to the setup step, the recipe "opsworks_nodejs::configure" to the configure step, and the recipe to "deploy::nodejs" to the deploy step).

create an app with the link to your YOUR_NODE_APP_REPO.

Launch your instance in Opsworks. Opsworks will deploy the code corresponding to the Branch/Revision specified in the app configuration, to the HEAD if not specified.

Dependent cookbooks

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Foodcritic Metric

0.1.9 failed this metric

FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/806005e230f01784d016cbf2/vagrant-node-simple/attributes/default.rb:1FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/806005e230f01784d016cbf2/vagrant-node-simple/recipes/deploy.rb:24FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/806005e230f01784d016cbf2/vagrant-node-simple/recipes/deploy.rb:29FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/806005e230f01784d016cbf2/vagrant-node-simple/recipes/deploy.rb:30FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/806005e230f01784d016cbf2/vagrant-node-simple/recipes/deploy.rb:31FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/806005e230f01784d016cbf2/vagrant-node-simple/recipes/start.rb:3FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/806005e230f01784d016cbf2/vagrant-node-simple/recipes/start.rb:13FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/806005e230f01784d016cbf2/vagrant-node-simple/recipes/start.rb:15FC019: Access node attributes in a consistent manner: /tmp/cook/806005e230f01784d016cbf2/vagrant-node-simple/attributes/default.rb:1