I am not able to deploy my backend .Its showing error.
This is my code :- const port = process.env.PORT || 80;
app.listen(port,()=>{
console.log(Server is running on port number ${port}
);
});
Hi,
Port 80 is reserved on free instance types, as noted in the docs
A default PORT
env var is set to 10000
, which the code you shared should pick up, so I suspect you’ve also manually set a PORT
env var to 80
. You could either delete your PORT
env var or set it to a non-reserved value.
Alan
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.