I have created a new OpenShift account for a new application I'm developing. I have added a MongoDB cartridge for the database, and a Tomcat cartridge for the Java web application.
I now need to connect to the database from my Java web app, but I miss two authentication details:
- $OPENSHIFT_MONGODB_DB_HOST
- $OPENSHIFT_MONGODB_DB_PORT
As far as I know, I have to type rhc env list -a the_name_of_my_app
in the console, but my application seems to have no environment variables set.
What can I do?