viyh / chef-cookbook-pm2 Goto Github PK
View Code? Open in Web Editor NEWChef cookbook to install PM2 for node.js and provide a LWRP to simplify running an application with PM2
Chef cookbook to install PM2 for node.js and provide a LWRP to simplify running an application with PM2
The pm2 recipe refers to nodejs-forever-agent
and coffee-script
packages, but these dependencies are not in the nodejs
cookbook, there are no packages with those names in apt (on Ubuntu trusty), and the docs say there are no other dependencies, but my build is failing because it can't find these packages. Where is it supposed to get them from? I am including the pm2::pm2
recipe.
==> default: ================================================================================
==> default: Error executing action `install` on resource 'apt_package[nodejs-forever-agent]'
==> default: ================================================================================
==> default:
==> default:
==> default: Chef::Exceptions::Package
==> default: -------------------------
==> default: No version specified, and no candidate version available for nodejs-forever-agent
==> default:
==> default: Resource Declaration:
==> default: ---------------------
==> default: # In /tmp/vagrant-chef-3/chef-solo-1/cookbooks/pm2/recipes/pm2.rb
==> default:
==> default: 8: package 'nodejs-forever-agent'
==> default: 9: package 'coffee-script'
==> default:
==> default: Compiled Resource:
==> default: ------------------
==> default: # Declared in /tmp/vagrant-chef-3/chef-solo-1/cookbooks/pm2/recipes/pm2.rb:8:in `from_file'
==> default:
==> default: apt_package("nodejs-forever-agent") do
==> default: action :install
==> default: retries 0
==> default: retry_delay 2
==> default: default_guard_interpreter :default
==> default: package_name "nodejs-forever-agent"
==> default: timeout 900
==> default: declared_type :package
==> default: cookbook_name :pm2
==> default: recipe_name "pm2"
==> default: end
==> default:
==> default: [2014-12-22T23:02:02+00:00] INFO: Running queued delayed notifications before re-raising exception
==> default: [2014-12-22T23:02:02+00:00] INFO: execute[sysctl[vm.overcommit_memory]] sending run action to ruby_block[save-sysctl-params] (delayed)
==> default: [2014-12-22T23:02:02+00:00] INFO: ruby_block[save-sysctl-params] called
==> default: [2014-12-22T23:02:02+00:00] INFO: ruby_block[save-sysctl-params] sending create action to template[/etc/sysctl.d/99-chef-attributes.conf] (delayed)
The name also suggests that the pm2 package uses forever
- I much prefer monit
for things like this - is this a hard dependency?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.