var express = require('express');
var app     = express(); 
var http    = require('http'); 
var mongoose= require('mongoose');

app.set('port', process.env.PORT || 3000);
app.use(express.favicon());
app.use(express.logger('dev'));
app.use(express.json());
app.use(express.urlencoded());
app.use(express.methodOverride());
app.use(app.router);

if ('development' === app.get('env')){
  app.use(express.errorHandler());
}
else if('test' === app.get('env')){
  app.use(express.errorHandler());
  database = 'test';
}

require('./routes');

http.createServer(app).listen(app.get('port'), function(){
  console.log('Listening on ' + app.get('port'));
});

exports.app = app;

var express = require('express');
var app     = express(); 
var http    = require('http'); 
var mongoose= require('mongoose');


app.set('port', process.env.PORT || 3000);
app.use(express.favicon());
app.use(express.logger('dev'));
app.use(express.json());
app.use(express.urlencoded());
app.use(express.methodOverride());
app.use(app.router);

if ('development' === app.get('env')){
  app.use(express.errorHandler());
}
else if('test' === app.get('env')){
  app.use(express.errorHandler());
  database = 'test';
}

require('./models/task');
require('./routes');

http.createServer(app).listen(app.get('port'), function(){
  console.log('Listening on ' + app.get('port'));
});

exports.app = app;

Fix previous error. Add require('./models/task')
Fix previous error. Add require('./models/task')

Fix previous error. Add require('./models/task')

Contact: 0a00ae03c9edd21d50a229f9fa1f98d9b3912b9e@isla.io
