Skip to Content
Industrial Internet Application Development
book

Industrial Internet Application Development

by Alena Traukina, Jayant Thomas, Prashant Tyagi, Veera Kishore Reddipalli
September 2018
Intermediate to advanced
412 pages
11h 12m
English
Packt Publishing
Content preview from Industrial Internet Application Development

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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hands-On Industrial Internet of Things

Hands-On Industrial Internet of Things

Giacomo Veneri, Antonio Capasso
What Employees Want Most in Uncertain Times

What Employees Want Most in Uncertain Times

Kristine W. Powers, Jessica B.B. Diaz

Publisher Resources

ISBN: 9781788298599Supplemental Content