mirror of
https://github.com/azures04/crafatar.git
synced 2026-03-21 23:41:18 +01:00
server.js should be imported, not called directly
This commit is contained in:
parent
99a5a34f3b
commit
34e94c090e
@ -109,8 +109,6 @@ exp.close = function(callback) {
|
|||||||
module.exports = exp;
|
module.exports = exp;
|
||||||
|
|
||||||
if (require.main === module) {
|
if (require.main === module) {
|
||||||
exp.boot();
|
logging.error("Please use 'npm start' or 'bin/www.js'");
|
||||||
|
process.exit(1);
|
||||||
// cleaning worker
|
|
||||||
setInterval(clean.run, config.cleaning_interval * 1000);
|
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user