'use strict';

var server,
    config = require('config'),
    logger = require('./logger'),
    environment = process.env.NODE_ENV,
    port;

require('node-jsx').install();

if (!environment) {
    throw new Error('Node environment not set (NODE_ENV).');
} else {
    logger.info('Running with environment:', environment);
}

port = config.get('server.port');

if (!port) {
    throw new Error('Server configuration missing');
}

server = require('./server');

server.listen(config.server.port);

logger.info('Server started on port ' + config.server.port);

@@ -165,16 +165,37 @@
 install(
+%7B extension: '.jsx' %7D
 );%0A%0Aif (

Fix jsx-loader configuration