diff --git a/src/DGM/Bootstrap.php b/src/DGM/Bootstrap.php index cd15a7d..646be93 100644 --- a/src/DGM/Bootstrap.php +++ b/src/DGM/Bootstrap.php @@ -32,7 +32,7 @@ public function register(Application $app) $app['config'] = $this->config; $app['db'] = $app->share(function(Application $app) { - return new MongoDB($app['config']['dbname'], $app['config']['db'], $app['config']['dbOptions']); + return new MongoDB($app['config']['dbname'], $app['config']['db']); }); $app['budgets'] = $app->share(function(Application $app) { diff --git a/src/DGM/Database/MongoDB.php b/src/DGM/Database/MongoDB.php index e6c2b22..7128c50 100644 --- a/src/DGM/Database/MongoDB.php +++ b/src/DGM/Database/MongoDB.php @@ -8,9 +8,9 @@ class MongoDB { public $mongoDb; - public function __construct($dbname, $connectionString, $options) + public function __construct($dbname, $connectionString) { - $this->mongo = new \Mongo($connectionString, $options); + $this->mongo = new \Mongo($connectionString); $this->mongoDb = $this->mongo->selectDb($dbname); } diff --git a/web/index.php b/web/index.php index ae5dee8..a79085d 100644 --- a/web/index.php +++ b/web/index.php @@ -13,8 +13,7 @@ 'gitHash' => `git rev-parse HEAD`, 'buildId' => substr(`git rev-parse HEAD`, 0, 16), 'categories' => Util::loadJSONFile(__DIR__ . '/../resources/categories.json'), - 'db' => 'mongodb://db-production2,db-production1', - 'dbOptions' => array("replicaSet" => "dbproduction"), + 'db' => 'mongodb://db-production1', 'dbname' => 'budget2012', 'assetHost' => 'http://9d13444fc29e94942058-e7acde355f751313b3672e46489208df.r75.cf1.rackcdn.com' ];