Tuesday 8 March 2016

[question]How to do Jenkins deploy of Nodejs apps?

Getting started with node/express and Jenkins CI, and running into some issues...I have a simple express app that is running continuously (think your basic webserver)when i am ssh'ed into the server, i can run:node index.js& which will start the express app, and allow me to start doing other things.The issue i am having is with jenkins for the jenkins builds, i go have some jenkins shell build steps that goes through what i would do locally:1: npm install/unit tests etc.2: "start the server"the start the server part, what i am doing is SCP node_modules/ and needed files over to the server, and execute thenode index.js& command...however jenkins seems to be hanging up on it, and returning the build as unstable.So my questions is, what is the "Proper" build method for apps to be deployed to "production"

Submitted March 08, 2016 at 04:31PM by T-rex_with_a_gun

No comments:

Post a Comment