We create the express project, and the default port is 3000 after startup. At this time, we can customize the port like this
Open app.js
Add code
process.env.PORT = 2000;
We create the express project, and the default port is 3000 after startup. At this time, we can customize the port like this
Open app.js
Add code
process.env.PORT = 2000;