cf push test-app
/
: a simple landing page displaying the index and uptime
/env
: displays environment variables
/exit
: instructs the app to exit with status code 1
/port
: returns the local port the request was received on
By providing a customer start command, you can configure the app to listen on multiple ports. The app responds the same way to each port.
cf push test-app -c "test-app --ports=7777,8888"
Simple App is also packaged as a docker image at cloudfoundry/test-app
cf push my-test-app -o cloudfoundry/test-app
./build.sh
Assumes you have the go toolchain (with the ability to cross-compile to different platforms) and docker installed and pointing at your docker daemon.