mirror of
https://github.com/azures04/crafatar.git
synced 2026-03-21 23:41:18 +01:00
clusters aren't supported, see #80 until we actually use clusters, having a main AND a single worker cluster just makes things more difficult
12 lines
347 B
JavaScript
12 lines
347 B
JavaScript
var logging = require("./lib/logging");
|
|
var cleaner = require("./lib/cleaner");
|
|
var config = require("./config");
|
|
|
|
process.on("uncaughtException", function(err) {
|
|
logging.error("uncaughtException", err.stack || err.toString());
|
|
process.exit(1);
|
|
});
|
|
|
|
setInterval(cleaner.run, config.cleaner.interval * 1000);
|
|
|
|
require("./lib/server.js").boot(); |