Merge pull request #6796 from FreeCodeCamp/fix/production-timeout

Increase time for DB connect in production
This commit is contained in:
Quincy Larson
2016-02-06 23:03:58 -08:00

View File

@ -26,6 +26,6 @@ var timeoutHandler = setTimeout(function() {
// purposely shutdown server // purposely shutdown server
// pm2 should restart this in production // pm2 should restart this in production
throw new Error(message); throw new Error(message);
}, 5000); }, 15000);
app.dataSources.db.on('connected', onConnect); app.dataSources.db.on('connected', onConnect);