Hello,
Last days, I tried to push a Play application to Cloud Foundry. It
works well with a war export of the application.
But I had to print the Cloud Foundry "VCAP_SERVICES" env variable in a
Play page to get the MySQL credentials, and then redeploy the
application with theses credentials.
To solve this issue, I developped a little plugin, based on the
cloudfoundry-runtime library (used by Spring). This plugin reads the
variable, and configure automatically the play db variables to use the
CloudFoundry MySQL instance binded to the instance.
This plugin is available on GitHub:
https://github.com/bcourtine/play--cloudfondry
All critics to improve this plugin are welcome.
Sincerely yours,
Benoît Courtine