Commit 921a1237 authored by Johannes Zellner's avatar Johannes Zellner

Kick off tasks only after the server started

parent 68a06a7a
......@@ -11,11 +11,11 @@ var server = require('./backend/server.js'),
database.init(function (error) {
if (error) return console.error('Failed to init database.', error);
tasks.run();
server.start(function (error) {
if (error) return console.error('Failed to start server.', error);
console.log('Server is up and running.');
tasks.run();
});
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment