How to set environment variables in Openshift Leave a reply It’s very easy set a new environment variable in Openshift (frequently use in nodejs apps), you have to use rhc command. rhc env set MONGO_URI='mongodb://user:pass@hostname:port/collection' --app applicacionNAME