Create a gist now

Instantly share code, notes, and snippets.

anonymous /gist:4392b801b632023fc3fb Secret
Created Dec 14, 2012

var mongoose = require('mongoose');
var db = mongoose.createConnection(cfg.mongo.uri, cfg.mongo.db);
var mongoose = require('mongoose')
, cfg = require('../config')
, bcrypt = require('bcrypt')
, Schema = mongoose.Schema;
var UserSchema = new Schema({
module.exports = mongoose.model('User', UserSchema);
var User = require('../models/user');
app still hangs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment