angularjs - IBM Bluemix: Serving Angular with NodeJs in Production Devops -


i have angular app, served via small nodejs app.

i have jenkins job build app , package it.

the output artifacts dist directory angular app , node app.js file serving.

i want take artifacts push them bluemix.

the thing :

  • you need package.json file cloudfoundry detect nodejs buildpack
  • when have package.json bluemix/cloudfoundry(?) execute npm install / build / test commands

i have builded application, need call node app.js app served. , in terms of devops prefer keep build once practice in place.

my current bypass have empty package.json trick bluemix.

so, want know if it's possible deploy node application on bluemix without needing package.json ?

or @ least disable npm commands ?

i want bluemix/cloudfoundry(?) node app.js

thanks help

there 2 ways (manifest.yml , command line) target specific build pack. webpage documents model https://docs.cloudfoundry.org/buildpacks/node/node-tips.html#discovery

you may want consider shrinkwrap (https://docs.npmjs.com/cli/shrinkwrap) locking versioning of dependencies.

if combine these two, think gets closer goals.


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -