Co-authored-by: Patrick Müller <patrick@mueller-patrick.tech> Reviewed-on: #4 Co-authored-by: Patrick Müller <patrick@plutodev.de> Co-committed-by: Patrick Müller <patrick@plutodev.de>
This commit was merged in pull request #4.
This commit is contained in:
@@ -5,11 +5,12 @@ import * as dotenv from 'dotenv';
|
||||
import {partyPlanerRouter} from './src/models/partyplaner/PartyPlaner.router';
|
||||
import {highlightMarkerRouter} from './src/models/twitch-highlight-marker/HighlightMarker.router';
|
||||
import {dhbwServiceRouter} from './src/models/dhbw-service/DHBWService.router';
|
||||
import logger from "./src/middleware/logger";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
if (!process.env.PORT) {
|
||||
console.log('No port');
|
||||
logger.error('No port');
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
@@ -32,5 +33,5 @@ app.get('/', (req: express.Request, res: express.Response) => {
|
||||
});
|
||||
|
||||
server.listen(port, () => {
|
||||
console.log('Server listening on Port ' + port);
|
||||
logger.info('Server listening on Port ' + port);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user