上QQ阅读APP看书,第一时间看更新
Running a receiver application in Predix
To run a receiver app in Predix, follow the sequence shown here:
- Install and connect the Cloud Foundry CLI to your Predix account.
- Create a PostgreSQL service and obtain the credentials.
- Create the ./receiver/manifest.yml file with the following content:
applications:
-
name: receiver
memory: 128M
random-route: true
- Replace the database credentials in ./receiver/index.js.
- Deploy to the cloud:
cf push
- Change the REMOTE-SERVER-ADDRESS in the hub application on the RPi to the newly deployed receiver.
For the source code as shown in this example, go to https://github.com/Altoros/iot-book/.