codecombat/index.js

13 lines
457 B
JavaScript
Raw Normal View History

var majorVersion = parseInt(process.versions.node.split('.')[0]);
if (majorVersion < 4) {
console.error('Server requires Node v4 or higher. Your version:', process.version);
process.exit(1);
}
if (majorVersion === 4) {
console.warn('WARNING: You are using Node v4. Please upgrade to Node v5. Your version:', process.versions.node);
}
2014-01-03 13:32:13 -05:00
require('coffee-script');
2014-02-11 17:23:36 -05:00
require('coffee-script/register');
2014-01-27 18:36:35 -05:00
var server = require('./server');
server.startServer();