Skip to content

Commit 0893fde

Browse files
committed
refactor: Nomenclature refactor
1 parent 9b5cdd8 commit 0893fde

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

configs/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const bcrypt = require('bcrypt');
33
require('dotenv').config();
44

55
module.exports = {
6-
SERVER_PORT: process.env.SERVER_PORT || 8080,
6+
PORT: process.env.PORT || 8080,
77
MONGODB_URI: process.env.MONGODB_URI || 'mongodb://localhost:27017/taskifyDB?retryWrites=false',
88
JWT_PRIVATE_KEY: process.env.JWT_PRIVATE_KEY || bcrypt.genSaltSync(20),
99
RUNNING_MODE: process.env.RUNNING_MODE || 'production',

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@ app.use('/api', apiRoutes);
3838

3939
app.use(express.static('frontend'));
4040

41-
app.listen(configs.SERVER_PORT, () => {
42-
console.log(`Server listening on port ${configs.SERVER_PORT}`);
41+
app.listen(configs.PORT, () => {
42+
console.log(`Server listening on port ${configs.PORT}`);
4343
});

0 commit comments

Comments
 (0)