Initial commit

This commit is contained in:
Rowan Manning
2013-09-13 16:49:19 +01:00
commit 433aecd972
10 changed files with 148 additions and 0 deletions

19
index.js Normal file
View File

@@ -0,0 +1,19 @@
'use strict';
var chalk = require('chalk');
var config = require('./config/' + (process.env.NODE_ENV || 'development') + '.json');
require('./app')(config, function (err, app) {
console.log('');
console.log(chalk.underline.magenta('pa11y-web started'));
console.log(chalk.grey('mode: %s'), process.env.NODE_ENV);
console.log(chalk.grey('uri: %s'), app.address);
app.on('route-error', function (err) {
if (err.code === 'ECONNREFUSED') {
console.log(chalk.red('Error: could not connect to pa11y-webservice'))
}
});
});