Skip to content

Commit

Permalink
fixed the mongodb connections to use the proper database
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Wigfield committed Sep 12, 2011
1 parent 0dd1993 commit 63ab372
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 2 deletions.
Binary file modified lib/SimpleCqrs.EventStore.MongoDb.dll
Binary file not shown.
Binary file modified lib/SimpleCqrs.Utilites.dll
Binary file not shown.
Binary file modified lib/SimpleCqrs.dll
Binary file not shown.
3 changes: 2 additions & 1 deletion src/gleanBoard/ViewRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ public class ViewRepository

public ViewRepository()
{
data = MongoServer.Create(ConfigurationManager.AppSettings["MONGOHQ_URL"]).GetDatabase("Views");
var connection = new MongoUrlBuilder(ConfigurationManager.AppSettings["MONGOHQ_URL"]);
data = MongoServer.Create(connection.ToMongoUrl()).GetDatabase(connection.DatabaseName);
}

public void Save<T>(T view)
Expand Down
2 changes: 1 addition & 1 deletion src/gleanBoard/Web.config
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
-->
<configuration>
<appSettings>
<add key="MONGOHQ_URL" value="mongodb://localhost"/>
<add key="MONGOHQ_URL" value="mongodb://localhost/gleanBoard"/>
</appSettings>
<system.web>
<customErrors mode="Off" />
Expand Down

0 comments on commit 63ab372

Please sign in to comment.