MySQL service OpenShift variable missing

Issue #34 resolved
Lincoln Lee created an issue

It provides me with this 4 variables:

OPENSHIFT_MYSQL_DB_USERNAME']

OPENSHIFT_MYSQL_DB_PASSWORD']

OPENSHIFT_MYSQL_DB_HOST']

OPENSHIFT_MYSQL_DB_PORT']

But missing this one:

OPENSHIFT_APP_NAME

Which is the database name.

Related to : https://bitbucket.org/hkwtf/portal/src/356e46abed7e04d43943a7189d14f839a9030e05/app/models/service.rb?at=master#cl-13

Comments (10)

  1. Lincoln Lee reporter

    Yup.

    - OPENSHIFT_MYSQL_DB_HOST
    - OPENSHIFT_MYSQL_DB_PORT
    - OPENSHIFT_MYSQL_DB_USERNAME
    - OPENSHIFT_MYSQL_DB_PASSWORD
    - OPENSHIFT_MYSQL_DB_URL
    

    But it didn't say which database I can use.

  2. Jimmy Chu

    Your app name is the name of the database. I haven't added this back :)

    For example, with project-username.app.cnpaas.io, your DB name is project

  3. Log in to comment