This clickstart demonstrates a basic hello world node.js app on CloudBees with continuous deployment. Jenkins runs tests via npm.
package.json is used to specify what packages are needed - main.js is the default server app (you can set main_js via bees config:set to override it to something else)
- Install node.js
- Clone this repo
- node app/main.js
- cd app
- zip -r ../app.zip
- bees app:deploy -t nodejs -RPLUGIN.SRC.nodejs=https://s3.amazonaws.com/clickstacks/admin/nodejs-plugin-0.10.5.zip ../app.zip
See here if you want to change how it work: https://github.com/CloudBees-community/node-clickstack The node-clickstack makes this possible - if you want to tweak how the node.js container works fork that repo, change it, and use it for the -RPLUGIN.SRC.nodejs url above.
Otherwise - fork this !