Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

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.

Select Badges

Select Supported Platforms

Select Status

RSS

application_javascript (1) Versions 1.0.0

A Chef cookbook for deploying server-side JavaScript application code.

Policyfile
Berkshelf
Knife
cookbook 'application_javascript', '~> 1.0.0', :supermarket
cookbook 'application_javascript', '~> 1.0.0'
knife supermarket install application_javascript
knife supermarket download application_javascript
README
Dependencies
Changelog
Quality 33%

Application_Javascript Cookbook

Build Status
Gem Version
Cookbook Version
Coverage
Gemnasium
License

A Chef cookbook to deploy server-side JavaScript
applications using Node.js or io.js.

Quick Start

To deploy an Express application from git:

application '/srv/myapp' do
  git 'https://github.com/example/myapp.git'
  npm_install
  npm_start
end

Requirements

Chef 12 or newer is required.

Resources

application_javascript

The application_javascript resource installs a JavaScript runtime for the
deployment.

application '/srv/myapp' do
  javascript '3'
end

All actions and properties are the same as the javascript_runtime resource.

application_javascript_service

The application_javascript_javascript_service resource creates a service for a
JavaScript command.

application '/srv/myapp' do
  javascript_service 'main.js'
end

Actions

  • :enable – Create, enable and start the service. (default)
  • :disable – Stop, disable, and destroy the service.
  • :start – Start the service.
  • :stop – Stop the service.
  • :restart – Stop and then start the service.
  • :reload – Send the configured reload signal to the service.

Properties

  • command – Command to run. (name attribute)
  • path – Base path for the application. (default: application path)
  • service_name – Name of the service to create. (default: auto-detect) # user – User to run the service as. (default: application owner)

application_node_package

The application_node_package resource installs NPM packages for the deployment.

application '/srv/myapp' do
  node_package 'grunt-cli'
end

All actions and properties are the same as the node_package resource,
except that the group and user properties default to the application-level
data if not specified.

application_npm_start

The application_npm_start resource creates a service for a JavaScript
application using npm start.

application '/srv/myapp' do
  npm_start
end

Actions

  • :enable – Create, enable and start the service. (default)
  • :disable – Stop, disable, and destroy the service.
  • :start – Start the service.
  • :stop – Stop the service.
  • :restart – Stop and then start the service.
  • :reload – Send the configured reload signal to the service.

Properties

  • path – Base path for the application. (default: name attribute)
  • command – NPM subcommand to run. (default: start)
  • service_name – Name of the service to create. (default: auto-detect) # user – User to run the service as. (default: application owner)

Sponsors

Development sponsored by Chef Software, Symonds & Son, and Orion.

The Poise test server infrastructure is sponsored by Rackspace.

License

Copyright 2015, Noah Kantrowitz

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Dependent cookbooks

poise ~> 2.0
application ~> 5.0
poise-javascript ~> 1.0
poise-service ~> 1.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Application_Javascript Changelog

v1.0.0

Initial release!

Collaborator Number Metric
            

1.0.0 failed this metric

Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Contributing File Metric
            

1.0.0 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file

Foodcritic Metric
            

1.0.0 passed this metric

No Binaries Metric
            

1.0.0 passed this metric

Testing File Metric
            

1.0.0 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file

Version Tag Metric
            

1.0.0 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number