Pipeline for Node.js App Environments

blubberbo February 20, 2018

This may be a stupid question, but is there a standard/best way to control the environments when deploying through a pipeline (for instance to Heroku).

I have a Node.js app and, for instance, I use 'nodemon' in the "npm start" script I specify in my 'package.json' in dev, but need it to run just 'node' in production when I deploy it.

How do I go about making that change programmatically when I deploy via the pipeline?

 

I hope that makes sense, thanks in advance!

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events