Skip to content

Instantly share code, notes, and snippets.

View masom's full-sized avatar
💭
I may be slow to respond.

Martin Samson masom

💭
I may be slow to respond.
  • Shopify
  • Ottawa, Canada
View GitHub Profile
@masom
masom / connections.php
Created November 24, 2011 16:43 — forked from spacemonkey/connections.php
Example for connecting Lithium apps to a MongoDB replica set
/**
* Example of a production database called "db_prod" connecting to a replica set
* running on two systems, "db1" and "db2" with the replica set name of "prod_01".
*
* This setup assumes that you're running a recent version of MongoDB as well as
* the PHP extension.
**/
Connections::add('default', array(
'production' => array(
'type' => 'MongoDb',