Binding a service to an application
Now that we have a service, let's create an application that uses it. As a starting point, we'll use the application we created in Chapter 2, Using the Command-line Tool, which displays environment variables. Now, perform the following steps:
Go to the control panel page for the previous application.
Click on the Clone button on the left side. The Clone Your App display appears.
Choose an infrastructure. This must be the same infrastructure you chose for the database service.
Enter an application name under Enter a domain. For this example, I will use
insideaf2
as the application name.Click on the Clone App button. The control panel for the old application is replaced by a status display for the cloning process. Once the new application is up and running, its control panel appears.
Click on the Services button on the left side of the page. The services display appears. Notice that the Bound Service list is empty but that the Other Services list contains the...