Skip to content

Commit 3854dce

Browse files
committed
fix env
1 parent 177e533 commit 3854dce

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

Projects/BooksLibrary/.env.sample

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
BaseUrl=http://localhost:7272
1+
BASE_URL=http://localhost:7272/api/v1
22
PORT=7272
33
NODE_ENV=development
44
API_VERSION=0.0.1

Projects/BooksLibrary/src/app.ts

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)