This topic describes how to bind an external database to the Zend Server application as a user-provided service. Doing so will enable persistence, session clustering, and more. You can perform this procedure during the deployment of your application, or at any stage after deployment.
|
|
|
To bind an external database
cf create-service
cf bind-service [service-name] [app-name] The service will be auto-detected upon push. |
|
Note: To use the database parameters in an application, use the PHP getenv function to extract them from the VCAP SERVICES environment variable. |