Skip to content

process.env.DATABASE_SERVICE_NAME is undefined #167

Open

Description

@francoro

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.

Activity

  1. sfthurber commented on Aug 18, 2018

    @sfthurber

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions