Skip to content

Commit

Permalink
Changed to hosted db
Browse files Browse the repository at this point in the history
  • Loading branch information
jwswj committed Nov 4, 2011
1 parent 39dff08 commit 08fdc7a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ var port = process.env.NODE_ENV === 'production' ? 80 : 8080;
var host = process.env.NODE_ENV === 'production' ? config.host : 'localhost';

// Connect to Mongoose using our database config.
mongoose.connect('mongodb://localhost:27017/SJWedding', function(err) {
mongoose.connect('mongodb://jason:[email protected]:10049/WeddingPics', function(err) {
logger.error(err);
if (!err) {
logger.info('Mongoose connected');
Expand All @@ -31,7 +31,6 @@ app.configure(function(){

// Initialise our Picture model.
var Event = require('./models/event');
var Picture = require('./models/picture');

app.all('/', function(req, res){

Expand Down

0 comments on commit 08fdc7a

Please sign in to comment.