-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

OPENSHIFT COOKBOOK
By :

MongoDB exposes a minimal REST interface that allows users to query collections. The interface does not expose operations to insert, update, or remove documents. In this recipe, you will learn how to enable the MongoDB cartridge REST interface.
To complete this recipe, you will need an application with a MongoDB cartridge. Refer to the Adding a MongoDB cartridge to your application recipe in this chapter to learn how to add one.
Perform the following steps to enable the MongoDB REST interface:
Open a new command-line terminal and SSH into the myapp
application gear using the ssh
command:
$ rhc ssh --app myapp
Once inside the application gear, change the directory to mongodb/conf
and edit the mongodb.conf
file using Vim.
Now, we need to update the nohttpinterface
property value to false
so that MongoDB enables the HTTP frontend on the 28017
port. To enable the REST interface, you have to add a new property, rest
, and set...
Change the font size
Change margin width
Change background colour