Browse Source

server.js should be imported, not called directly

jomo 10 years ago
parent
commit
34e94c090e
1 changed files with 2 additions and 4 deletions
  1. 2 4
      server.js

+ 2 - 4
server.js

@@ -109,8 +109,6 @@ exp.close = function(callback) {
 module.exports = exp;
 module.exports = exp;
 
 
 if (require.main === module) {
 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);
 }
 }