mirror of
https://github.com/mmumshad/ansible-playable.git
synced 2025-03-09 23:38:54 +00:00
Feature - Integrate System API to view logs in UI
This commit is contained in:
parent
1690470269
commit
bf6c8743c5
15 changed files with 353 additions and 26 deletions
|
|
@ -10,6 +10,7 @@ mongoose.Promise = require('bluebird');
|
|||
import config from './config/environment';
|
||||
import http from 'http';
|
||||
import seedDatabaseIfNeeded from './config/seed';
|
||||
const logger = require('./components/logger/logger');
|
||||
|
||||
// Connect to MongoDB
|
||||
mongoose.connect(config.mongo.uri, config.mongo.options);
|
||||
|
|
@ -27,7 +28,10 @@ require('./routes').default(app);
|
|||
// Start server
|
||||
function startServer() {
|
||||
app.angularFullstack = server.listen(config.port, config.ip, function() {
|
||||
console.log('Express server listening on %d, in %s mode', config.port, app.get('env'));
|
||||
logger.info('\n');
|
||||
logger.info('---------------------------------------------------------------');
|
||||
logger.info('Express server listening on %d, in %s mode', config.port, app.get('env'));
|
||||
logger.info('---------------------------------------------------------------\n');
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue