You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
heroku-buildpack-ruby require that the runtime specify a PORT environment variable. Although consistent across buildpacks -- a recurring issue is building a rack image and forgetting to specify the port at runtime. For many buildpacks, the error is self evident.
When building a rack application with the ruby buildpack, the error is a little more cryptic:
The text was updated successfully, but these errors were encountered:
thephw
changed the title
Consider adding a warning when PORT environment variable is missing
Consider adding a warning when PORT environment variable is missing at runtime
Dec 16, 2019
Description
heroku-buildpack-ruby
require that the runtime specify aPORT
environment variable. Although consistent across buildpacks -- a recurring issue is building a rack image and forgetting to specify the port at runtime. For many buildpacks, the error is self evident.When building a rack application with the ruby buildpack, the error is a little more cryptic:
Suggestion
We could clarify the error message for all application without affecting compliance and integration with other language buildpacks.
Alternate Considerations
Code in question
heroku-buildpack-ruby/lib/language_pack/rack.rb
Line 32 in 22b24b6
Reference
buildpacks/samples#46
The text was updated successfully, but these errors were encountered: