Explorar o código

server.js should be imported, not called directly

jomo %!s(int64=10) %!d(string=hai) anos
pai
achega
34e94c090e
Modificáronse 1 ficheiros con 2 adicións e 4 borrados
  1. 2 4
      server.js

+ 2 - 4
server.js

@@ -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);
 }