Created
January 30, 2017 17:03
-
-
Save ankitsari/39ba1293113001797fdcb672b3737e48 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// settings | |
var env = process.env.NODE_ENV || 'development'; | |
// new relic integration | |
if (env != 'development') { | |
// we are in prod environment | |
// run new relic | |
require('newrelic'); | |
console.log('Newrelic has run'); | |
} | |
var connection = require('./db.connection.js'); | |
var server = require('./server'); | |
var mergeTool = require('./tools/merge'); | |
module.exports = connection.db() | |
.then(mergeTool.mergeConversationsToLastMessageFrom) | |
.then(function(){ | |
server(); | |
return true; | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var gulp = require('gulp'); | |
gulp.paths = { | |
src: 'public', | |
dist: 'public/dist', | |
tmp: '.tmp', | |
views: 'views', | |
www: "www" | |
}; | |
require('require-dir')('./gulp'); | |
gulp.task('build', ['clean'], function () { | |
gulp.start('buildapp'); | |
}); | |
gulp.task('default', function () { | |
gulp.start('serve'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment