Binding an Asset service instance to your application

Once you have created a service instance, you need to bind it to your application. To do that, follow these steps:

  1. Create the ui folder:
mkdir ui
  1. Create the index.html file. It should be empty.
  1. Create manifest.yml and paste the following code into it:
---applications:- name: ui  memory: 64M  buildpack: staticfile_buildpack  random-route: true
  1. Deploy the application base to the cloud, using the following command:
cf push
  1. Run this command from the console:
cf bind-service ui asset-service-instance

After running the command, you will get the console output shown in the following screenshot:

Console output after binding an Asset Service instance to an application
  1. Run this command ...

Get Industrial Internet Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.