Skip to content

Use a default port is none is given #371

@ryanmoran

Description

@ryanmoran

Describe the Enhancement

Currently, if users don't set the PORT environment variable when running the application image, they can get an error message: Config variable ${PORT} is not defined. It would be reasonable to choose a default value so that the app still starts up even if this variable is unset.

Possible Solution

If the user has not set the PORT environment variable, the buildpack should set a default to 8080 so that the configuration can still be successfully read.

Motivation

Doing this would help to streamline the experience for users of the buildpack and reduce the number of environment variables required to run applications using this buildpack.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions