mirror of
https://github.com/docker-training/node-bulletin-board.git
synced 2025-12-15 15:26:43 +08:00
Add logging & config; update base images
This commit is contained in:
9
bulletin-board-app/config/dbConfig.js
Normal file
9
bulletin-board-app/config/dbConfig.js
Normal file
@@ -0,0 +1,9 @@
|
||||
var dbConfig = module.exports = {};
|
||||
|
||||
dbConfig.options = {
|
||||
username: 'sa',
|
||||
password: 'DockerCon!!!',
|
||||
host: 'bb-db',
|
||||
post: 1433,
|
||||
dbName: 'BulletinBoard'
|
||||
};
|
||||
10
bulletin-board-app/config/logConfig.js
Normal file
10
bulletin-board-app/config/logConfig.js
Normal file
@@ -0,0 +1,10 @@
|
||||
const winston = require('winston');
|
||||
var logConfig = module.exports = {};
|
||||
|
||||
logConfig.options = {
|
||||
transports: [
|
||||
new winston.transports.Console({
|
||||
level: 'info'
|
||||
})
|
||||
]
|
||||
};
|
||||
Reference in New Issue
Block a user