In the Publish tab, when you click the Publish button, the system starts to publish life-cycle of an app. The publish life-cycle has several app publish stages. During publish app, the system validates each of the stages. Each stage indicates with a tick mark after a successful publish of that stage.
Note: If a service is not configured in an app during design time, the system skips that stage without errors while publishing the app.
However, a tick mark is attached to the stage that indicates publish is successful. While accessing the app in runtime, the system skips non configured services automatically.
While publishing an app, the system processes a set of stages for the configured services in the app. The stages such as validating services, cleaning unused (Integration Orchestration, and Sync) services, propagating changes to runtime, publishing Sync services, publishing app resources, publishing identity services, publishing reporting services, and publishing messaging services.
Important: Ensure that you configure and validate services in the app are correct to avoid failures during publish life-cycle.
During publish life-cycle, the system fails to publish a stage due to wrong configurations in the app - such as, if a service is not configured, installed, or registered in the app, or an integration service has a broken reference of an identity service. An exclamation mark next to the failure message indicates that the stage was not successfully published.
For example, if message services have a wrong data configured in the app, the system does not publish this stage and throws the following error:
To view error details, in the Publishing dialog, click the Show Details link next that failed services.
Click OK to close the Publishing dialog.
A publish error has the following details:
The following publish failure errors indicate that you have not installed a service or registered a service as an environment.
For cloud, consult Kony Support team to enable Kony Fabric Sync for that cloud.
For cloud, consult Kony Support team to enable Kony App Services for that cloud.
For cloud, consult Kony Support team to enable Kony Fabric Engagement for that cloud.
The following information is available after you publish an app:
To view the sample code, follow these steps:
The Sample Code dialog appears.
Select an environment from the Published to environment list.
Note: You need to add this code in the initialization function of the respective platform SDK.
After you publish an app to an environment, Kony Fabric generates app documentation for your app. You can download app documentation from the Environments list in Publish page.
Unzip the app documentation folder.
The app documentation .zip comprises multiple artifacts such as index.html
file, service definition in Open API Initiative (OAI) format, services references in HTML and JSON format.
Open the index.html
in a browser to view the app details.
To view the App key and App Secret of a published app, click the App Key button in the Published Environment box.
The Primary Key/App Secret, Secondary Key/App Secret, and Service URL are used to initialize a client app to use Kony Fabric services.
To view the App Service Document, Object Services Metadata, and Sync Client Code, follow these steps:
Based on the configuration, the system displays links - for example:
Note: If an environment contains an alias hostname, the alias is used in the generated App Service Document. It is also used to make service calls from the client app.
A published app provides link to the following services consoles:
Whenever you publish a Kony Fabric app, a snapshot of the published app is created automatically in the Publish life-cycle. It captures the services and other configurations of the app at the time of publish. If the app is republished multiple times with some changes during the development, you can revert back to the previous versions using snapshots. This feature helps you to revert back to a stable state if the current publish results in an error so that the runtime is not effected.
To view the snapshots of the published app, click Snapshots. The History and Rollback screen is displayed.
By default, you can view the last two snapshots of an app in this screen and the last published app will be marked as Active. Click Settingsto change the number of snapshots you can view.
You can do the following in the Settings screen:
You can perform the following activities from the contextual menu available for each snapshot in the History and Rollback screen:
Copyright © 2020 Kony, Inc. All rights reserved. |