Reputation: 795
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:
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?
Upvotes: 1
Views: 1401
Reputation: 179
you can see environment variables by doing ssh to openshift. Also you can use openshift port forwarding feature to setup a connection locally to your database. Openshift blog link for port forwarding
Upvotes: 0
Reputation: 795
Apparently, the default enironment variables are visible only via ssh.
In order to see them, you have to type rhc ssh <appid-as-seen-on-openshift-console>
followeb by env
.
Upvotes: 2