Permiso denegado

Hola, estoy trabajando con node y express. Cuando quiero hacer el deploy del proyecto levanto em servidor asi:
app.listen(process.env.PORT || 3000, ()=>{
console.log("servidor corriendo)})

Y me dice que tengo el permiso denegado.
En la variable PORT estoy asignandole como valor la url que me da render.
Localmente funciona todo perfecto.
Me podrian ayudar?

Hey there

Welcome to Render. I don’t speak spanish so I translated the message you sent, so maybe is lost in translation. It’s usually best to write in english in the community chat to increase your chance of answer :slight_smile:

Permission denied usually indicates that it’s running on a wrong port. What happens if you do:

const port = process.env.PORT || 3000
app.listen(port, () => {
  console.log('running on', port)
})

Does it log out “running on 10000”

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.