Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

process.env.DATABASE_SERVICE_NAME is undefined #167

Open
francoro opened this issue Mar 3, 2018 · 1 comment
Open

process.env.DATABASE_SERVICE_NAME is undefined #167

francoro opened this issue Mar 3, 2018 · 1 comment

Comments

@francoro
Copy link

francoro commented Mar 3, 2018

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.

@sfthurber
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants