- Copy the source code of the
cf-example-sinatraapplication to the directorycf-example-sinatra-green:cp cf-example-sinatra cf-example-sinatra-green -R - Open the
public/style.cssfile and change theheader.backgroundproperty to#00cc00.
Your mission: create a bash script that will do blue/green deployment on the cf-sinatra-example application, deploying firs the "blue" version and then the "green" version.
-
Get the manifest file:
curl -o manifest.yml -J -L 'https://raw.githubusercontent.com/eljuanchosf/samsung-cf-training/master/day3/manifest.yml' -
Replace all the occurences of the following placeholders with the values for your deployment:
YOUR_CF_ELASTIC_IP
YOUR_AVAILABILITY_ZONE
YOUR_BOSH_DIRECTOR_UUID
YOUR_SUBNET_ID
-
Set the manifest
bosh deployment manifest.yml -
Deploy!
bosh -n deploy -
Once Cloud Foundry has been deployed, deploy the
cf-example-sinatraapplication:cf push my-sinatra-app -
Install the CF Firehose plugin:
cf install-plugin "Firehose Plugin" -r CF-Community -
Now, try to tail the logs:
cf nozzleAnd select the 'LogMessage' option.
Nice error, huh? It will return that you are NOT authorized, when you should be... what could be happening?
Your mission: try to fix the manifest.yml file by applying all the platform troubleshooting techniques learned in class.
Follow the instructions in this tutorial.
Your mission: have a custom buildpack ready!