File tree Expand file tree Collapse file tree 2 files changed +12
-8
lines changed
Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 1- BaseUrl = http://localhost:7272
1+ BASE_URL = http://localhost:7272/api/v1
22PORT = 7272
33NODE_ENV = development
44API_VERSION = 0.0.1
Original file line number Diff line number Diff line change @@ -65,12 +65,12 @@ export default class Application {
6565
6666 this . _app . use (
6767 fileUpload ( {
68- limits : { fileSize : MAX_UPLOAD_FILE_SIZE } ,
69- preserveExtension : true ,
70- createParentPath : true ,
71- parseNested : true ,
72- useTempFiles : true ,
73- tempFileDir : '/tmp/uploads/' ,
68+ limits : { fileSize : MAX_UPLOAD_FILE_SIZE } ,
69+ preserveExtension : true ,
70+ createParentPath : true ,
71+ parseNested : true ,
72+ useTempFiles : true ,
73+ tempFileDir : '/tmp/uploads/' ,
7474 } )
7575 ) ;
7676 resolve ( true ) ;
@@ -86,7 +86,11 @@ export default class Application {
8686 const port = process . env . PORT ;
8787 const server = this . _app . listen ( port , ( ) => {
8888 const serviceName = `api-${ process . env . NODE_ENV } ` ;
89- Logger . instance ( ) . log ( `${ serviceName } is up and listening on port ${ process . env . PORT . toString ( ) } ` ) ;
89+ Logger . instance ( ) . log (
90+ `${ serviceName } is up and listening on port ${ process . env . PORT . toString ( ) } url: ${
91+ ConfigurationManager . _config . BaseUrl
92+ } `
93+ ) ;
9094 this . _app . emit ( 'server_started' ) ;
9195 } ) ;
9296 module . exports . server = server ;
You can’t perform that action at this time.
0 commit comments