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.
Describe the Enhancement
Currently, if users don't set the
PORTenvironment 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
PORTenvironment variable, the buildpack should set a default to8080so 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.