Removed comment
parent
f37e521768
commit
10d04c2485
2
app.js
2
app.js
|
@ -323,7 +323,6 @@ app.on('uncaughtException', (err) => {
|
||||||
process.exit(2);
|
process.exit(2);
|
||||||
});
|
});
|
||||||
|
|
||||||
// MongoClient.connect(config.databaseConnectionString, {}, (err, client) => {
|
|
||||||
initDb(config.databaseConnectionString, (err, db) => {
|
initDb(config.databaseConnectionString, (err, db) => {
|
||||||
// On connection error we display then exit
|
// On connection error we display then exit
|
||||||
if(err){
|
if(err){
|
||||||
|
@ -357,6 +356,7 @@ initDb(config.databaseConnectionString, (err, db) => {
|
||||||
// lift the app
|
// lift the app
|
||||||
app.emit('appStarted');
|
app.emit('appStarted');
|
||||||
console.log(colors.green('expressCart running on host: http://localhost:' + app.get('port')));
|
console.log(colors.green('expressCart running on host: http://localhost:' + app.get('port')));
|
||||||
|
return;
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
console.error(colors.red('Error setting up indexes:' + err));
|
console.error(colors.red('Error setting up indexes:' + err));
|
||||||
|
|
Loading…
Reference in New Issue