mean-on-openshift icon indicating copy to clipboard operation
mean-on-openshift copied to clipboard

add rockMongo cartridge not working

Open zergxyz opened this issue 10 years ago • 5 comments

after deploy to the openshift. I tried to add the rockMongo cartridge to view the data in mongoDB. But I can't open the connection url since the MEAN stack routing defined the rules to prevent to show the connection console. Anyway to make this one work?

zergxyz avatar Dec 01 '14 16:12 zergxyz

you can try to SSH to your openshift gear and get the connection info from the command line, from the environment variables env | grep MONGODB

or with RHC rhc env list -a App_Name

OPENSHIFT_MONGODB_DB_PASSWORD, OPENSHIFT_MONGODB_DB_USERNAME, OPENSHIFT_MONGODB_DB_HOST, OPENSHIFT_MONGODB_DB_PORT

shai-weinstein avatar Dec 01 '14 17:12 shai-weinstein

@shai-weinstein Thanks for your reply, Shai. My issue is having difficulty in using the web browser to view the mongodb data. Rockmongo is a client viewer can let you directly review your json data from a web page (like phpmyadmin for mysql) and it's part of the openshift's free cartridge service. usually once you add this cartridge to your openshift application, you can open it by using this link: https://your-application-domain.com/rockmongo. But after installing our MEAN stack, this link is not working anymore. I believed that the MEAN stack routing code changed the default behavior of the above link. Just to check if we can change it back or add some filter to make sure the rockmongo client can still be accessible.

zergxyz avatar Dec 01 '14 20:12 zergxyz

I checked on my openshift gear, added rockmongo and it worked the rockmongo is accessible at https:/domain/rockmongo maybe try to add the rockmongo cartridge only after deploying MEAN

steps i did:

  1. create app from quickstart https://openshift.redhat.com/app/console/application_type/quickstart!18122 (specifying master branch) note that i did not use NODE_ENV=production, keeping the default NODE_ENV=development
  2. add rockmongo cartridge
  3. restart gear

shai-weinstein avatar Dec 09 '14 09:12 shai-weinstein

what is rockmongo? Lior

On Tue, Dec 9, 2014 at 11:29 AM, Shai Weinstein [email protected] wrote:

I checked on my openshift gear, added rockmongo and it worked the rockmongo is accessible at https:/domain/rockmongo maybe try to add the rockmongo cartridge only after deploying MEAN

steps i did:

  1. create app from quickstart https://openshift.redhat.com/app/console/application_type/quickstart!18122 (specifying master branch) node that i did not use NODE_ENV=production, keeping the default NODE_ENV=development
  2. add rockmongo cartridge
  3. restart gear

— Reply to this email directly or view it on GitHub https://github.com/linnovate/mean-on-openshift/issues/3#issuecomment-66255499 .

Lior Kesos - http://www.linnovate.net Linnovate - Community Infrastructure Care mail: [email protected] office: +972 722500881 cell: +972 524305252 skype: liorkesos

liorkesos avatar Dec 09 '14 10:12 liorkesos

I'm using the rockmongo cartridge on openshift with the mean cartridge, works for me too...

lleoooell avatar May 15 '15 12:05 lleoooell