Node.js on TIBCO Cloud? Integration
- Getting started
- Prerequisites
- My first Node.js app
- Deploy your first Node.js app
- Test your Node.js app
- Manage your Node.js apps
- Adding dependencies to your app
- Run your app locally
- Understanding the generated code
- Advanced topics
- Best practices
- Resources
The Node.js apps you?ve deployed to TIBCO Cloud? Integration can be managed in the same way as the other apps.
Start, Stop and Scale
The number in the green circle on the Apps
page shows how many instances of your app you have running. When you click on the green circle with the number, a control appears, which enables you to change the number of instances. To scale up your app, simply click the up arrow to add instances to the app, then click Scale. To scale down, simply click the down arrow, then click Scale. You can stop your apps by scaling them down to 0 instances.
App logs
The logger.js
file, that is in the util folder provides functionality to write messages from your app in the format that TIBCO Cloud Integration expects. You will need to add a reference to the logger util:
var Logger = require('../../util/logger');
And a call it, with some data to log and a log level:
Logger.log(Logger.LOG_INFO, "==========>> Running my Node.js Code !");
As logs are streamed from your app into TCI you can see them on the Log tab of your apps? details page. Logs can be viewed in a scrolling real time display, or you can select a time range to view historical logs.
- 1
Recommended Comments
There are no comments to display.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now