What happens between cf push
and "state: running"? We will have a look at how the Cloud Foundry part of the IBM Cloud creates and manages applications. Attending this session will give you an in-depth understanding of application deployment works and where to look in case of trouble. (edited)
cd ~/workspace/cf-acceptance-tests/assets/dora
cf push cloudora
cf logs cloudora
curl http://cloudora.eu-de.mybluemix.net
- Show the flow
- Walk through output of
cf push
curl 'http://cloudora.eu-de.mybluemix.net/echo/stdout/This%20is%20a%20vvveeerrryyy%0Alllooonnnggg%20ttteeexxxttt'
curl 'http://cloudora.eu-de.mybluemix.net/echo/stderr/The%20world%20is%20coming%20to%20an%20end'
RTR
CELL
APP/PROC/WEB
Explain
- HTTP status code
- vcap_request_id
- response_time
cf scale cloudora -i 2
curl http://cloudora.eu-de.mybluemix.net/id
Explain where to find instance id in the logs:
curl http://cloudora.eu-de.mybluemix.net/health
curl http://cloudora.eu-de.mybluemix.net/sigterm/TERM
cf ssh cloudora
cf push cloudora -c false
This is a stateful setting; reset it with
cf push cloudora -c null
cf push cloudora -c 'bundle exec rackup -p $RANDOM'
Do the right thing (similar to the default):
cf push cloudora -c 'bundle exec rackup -p $PORT'