Sample node.js deployment on cloudbees
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
.gitignore
README.md
clickstart.json
jenkins.xml

README.md

Node.js clickstart

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)

If you don't have a cloudbees account:

Sign in with GitHub:

To run manually locally

  1. Install node.js
  2. Clone this repo
  3. node app/main.js

To deploy manually to CloudBees

  1. cd app
  2. zip -r ../app.zip
  3. bees app:deploy -t nodejs ../app.zip

The node.js clickstack

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 !