Skip to content

what should be the default port in app.js? #1

@lzl124631x

Description

@lzl124631x

I'm using express. Which port should I specify in the app.js as the port number when using the custom script?

When using default deployment script (i.e. without specifying command in .deployment), I used this config:

let PORT = process.env.PORT || 80;
app.listen(PORT, () => console.log(`listening on port ${PORT}!`));

But when using custom script, this doesn't work. I got error:

remote: Error: listen EACCES 0.0.0.0:80

What should I do?
Context that might help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions