cloudfoundry-samples / lattice-app

A Demo Application for Lattice
Apache License 2.0
6 stars 22 forks source link

recover gracefully without env vars #2

Closed jbayer closed 9 years ago

jbayer commented 9 years ago

when running on docker you have to specify env variables or grace doesn't launch well without complaining about the env missing in the logs.

docker run --rm -i -t -p 8080:8080 -e INSTANCE_INDEX=0 -e PORT=8080 cloudfoundry/lattice-app /lattice-app

would be good to assume port 8080 and have instance index default to "unknown" or "?" when the env vars are not set.

davidwadden commented 9 years ago

created https://www.pivotaltracker.com/story/show/90420532 to track this effort. we will work with our pm to prioritize this into our backlog.

davidwadden commented 9 years ago

closing issue -- #90420532 has been accepted

this was addressed with 08e31e6a9a580c330ddea48f9d57216aa0f3370c