I'd previously written an article on deploying WordPress on Cloud Foundry. The process was a little clunky and has since broken, because of updates & changes to Cloud Foundry. To remedy this, I wrote a new post which was published today on the Cloud Foundry Foundation Blog.
Here's the link -> https://www.cloudfoundry.org/blog/install-scale-wordpress-cloud-foundry-2018/