Skip to content

Commit

Permalink
fix: port assigning use ENV over constant number
Browse files Browse the repository at this point in the history
change the order port assigning operations
  • Loading branch information
mv92 authored May 15, 2023
1 parent 6bd5d41 commit 67ccfa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const connectDB = require('./server/config/db');
const { isActiveRoute } = require('./server/helpers/routeHelpers');

const app = express();
const PORT = 5000 || process.env.PORT;
const PORT = process.env.PORT || 5000;

// Connect to DB
connectDB();
Expand Down

0 comments on commit 67ccfa9

Please sign in to comment.