server.js should be imported, not called directly

This commit is contained in:
jomo 2015-02-13 21:07:36 +01:00
parent 99a5a34f3b
commit 34e94c090e

View File

@ -109,8 +109,6 @@ exp.close = function(callback) {
module.exports = exp;
if (require.main === module) {
exp.boot();
// cleaning worker
setInterval(clean.run, config.cleaning_interval * 1000);
logging.error("Please use 'npm start' or 'bin/www.js'");
process.exit(1);
}