3
3
const express = require ( 'express' )
4
4
const Tailor = require ( 'node-tailor' )
5
5
const fs = require ( 'fs' )
6
- const tailor = new Tailor ( { templatesPath : __dirname + ' /templates' } ) ;
6
+ const tailor = new Tailor ( { templatesPath : ` ${ __dirname } /templates/` } ) ;
7
7
const app = express ( ) ;
8
8
const productServer = express ( ) ;
9
9
const userServer = express ( ) ;
@@ -33,7 +33,7 @@ productServer.get('/', (request, response) => {
33
33
} ) ;
34
34
35
35
const productPort = process . env . PORT || 5001 ;
36
- productServer . listen ( productPort , ( ) => console . log ( `Product Fragment Server listening on port ${ productPort } ...` ) ) ;
36
+ productServer . listen ( productPort , ( ) => console . log ( `Product fragment server listening on port ${ productPort } ...` ) ) ;
37
37
38
38
39
39
//User Fragment Server
@@ -43,7 +43,7 @@ userServer.get('/', (request, response) => {
43
43
} ) ;
44
44
45
45
const userPort = process . env . PORT || 5002 ;
46
- userServer . listen ( userPort , ( ) => console . log ( `Product Fragment Server listening on port ${ userPort } ...` ) ) ;
46
+ userServer . listen ( userPort , ( ) => console . log ( `User fragment server listening on port ${ userPort } ...` ) ) ;
47
47
48
48
49
49
//Video Fragment Server
@@ -53,4 +53,4 @@ videoServer.get('/', (request, response) => {
53
53
} ) ;
54
54
55
55
const videoPort = process . env . PORT || 5003 ;
56
- videoServer . listen ( videoPort , ( ) => console . log ( `Product Fragment Server listening on port ${ videoPort } ...` ) ) ;
56
+ videoServer . listen ( videoPort , ( ) => console . log ( `Video fragment server listening on port ${ videoPort } ...` ) ) ;
0 commit comments