Book Image

OpenShift Cookbook

By : Shekhar Gulati
Book Image

OpenShift Cookbook

By: Shekhar Gulati

Overview of this book

Table of Contents (19 chapters)
OpenShift Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Running OpenShift on a Virtual Machine
Index

Adding a RockMongo cartridge to your application


RockMongo (http://rockmongo.com/) is a free, open source, and popular tool written in the PHP programming language to handle the administration of the MongoDB database via a web browser. As a web application, RockMongo makes it easy to administer the MongoDB server without any installation on your local machine. In this recipe, you will learn how to install a RockMongo cartridge on your application.

Getting ready

To complete this recipe, you will need an application with a MongoDB cartridge. Refer to the Adding a MongoDB cartridge to your application recipe to learn how to install a MongoDB cartridge.

How to do it…

The steps needed to add the RockMongo cartridge are as follows:

  1. To install the RockMongo cartridge on the myapp application, open a new command-line terminal, then change the directory to the myapp directory location and execute the following command:

    $ rhc add-cartridge rockmongo --app myapp
    
  2. Note the username and password returned by...