pusongyang / todolist-backend

96 stars 51 forks source link

Update index.js #10

Open AaronGulman opened 5 months ago

AaronGulman commented 5 months ago

Refactor: Use process.env.PORT for dynamic port assignment

This change ensures that the server listens on the appropriate port based on the env(environment), allowing for smoother deployment in various hosting platforms like,for instance, Heroku