nodejs-ex icon indicating copy to clipboard operation
nodejs-ex copied to clipboard

process.env.DATABASE_SERVICE_NAME is undefined

Open francoro opened this issue 7 years ago • 1 comments

I dont understand if i have to set the value for all the env variables : var mongoServiceName = process.env.DATABASE_SERVICE_NAME.toUpperCase(), mongoHost = process.env[mongoServiceName + '_SERVICE_HOST'], mongoPort = process.env[mongoServiceName + '_SERVICE_PORT'], mongoDatabase = process.env[mongoServiceName + '_DATABASE'], mongoPassword = process.env[mongoServiceName + '_PASSWORD'] mongoUser = process.env[mongoServiceName + '_USER'];

And if i have to which value is for each one of these env variables.Please help.

francoro avatar Mar 03 '18 20:03 francoro

no, you don't set these if you are deploying on openshift. see the working back end example at: https://github.com/sfthurber/nodejs-ex

sfthurber avatar Aug 18 '18 13:08 sfthurber