mirror of
https://github.com/pa11y/pa11y-dashboard.git
synced 2025-09-24 22:31:15 +00:00
Initial commit
This commit is contained in:
19
index.js
Normal file
19
index.js
Normal 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'))
|
||||
}
|
||||
});
|
||||
|
||||
});
|
Reference in New Issue
Block a user