Industrial Internet Application Development
上QQ阅读APP看书,第一时间看更新

Running a receiver application in Predix

To run a receiver app in Predix, follow this sequence:

  1. Install and connect the Сloud Foundry CLI to your Predix account.
  2. Create a PostgreSQL service and obtain the credentials.
  1. Create the ./receiver/manifest.yml file with the following content:
applications:
-
name: receiver
memory: 128M
random-route: true
  1. Replace the database credentials in ./receiver/index.js.
  2. Deploy to the cloud:
cf push
  1. Change the REMOTE-SERVER-ADDRESS in the hub application on the RPi to the newly deployed receiver.