summaryrefslogtreecommitdiff
path: root/main.js
blob: f564ef0a2c7970fd06bb17cd7d7861d3e934f882 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#! /usr/bin/env node

process.on('uncaughtException', function(err) {
	console.error('uncaughtException: ' + (err.stack || err.message || err.toString()));
});

process.chdir(__dirname);
var config = require('./config');

var model = require('./model_' + config.modelBackend);
model.start(config.Config);

var frontend = require('./frontend');
frontend.setModel(model);
frontend.start(config.Config);