Skip to content

Publishing a Web App in Volt Iris

Overview

Web publish enables you to build and publish a web app from Volt Iris to your Volt Foundry cloud environment.

Seamless Build and Publish Experience

Starting with Volt Iris V9 SP2, you can build and publish a web app to Volt Foundry without leaving Volt Iris. Previously, you had to design the web app in Volt Iris and then open the Volt Foundry console to publish it. This change simplifies the build and publish process.

The Build and Publish Web feature is available in the Build menu of Volt Iris.

The build and publish process runs in the background, allowing you to continue working on the Iris canvas while the app is being built and published.

Accessing the Published URL in Volt Iris

fter the publish process completes, the published URL is displayed on the Build tab in Volt Iris. Click the URL to open the Iris Preview window. For more information about the Iris Preview window, see Live Preview.

You can also click Copy next to the URL to copy it and open the app in a web browser of your choice.

The Build tab displays the publish status of your app. If errors occur, they appear on the Build tab. To view detailed error logs, switch to the Console tab.

Prerequisites

Following are the prerequisites to publish a Web App within Volt Iris:

  1. Sign in to your Volt MX Cloud account.
  2. Link a new or an existing Foundry app to your Iris Project.

When you try to publish the app without logging into Volt Foundry, the login window appears.

If you try to publish the app, even when you do not have an associated Volt Foundry app, you will get a prompt to link a Volt Foundry app.

To change the selected Cloud account or Environment, go to Project Settings > Volt Foundry. Then, click the Volt Foundry tab. At the top of this tab, under Volt Foundry Environment, select an environment from the drop-down list. Click Done. If you do not see any environments listed, you need to create one. For more information, refer Environments in the Volt Foundry Console User Guide.

To publish the Volt Iris web app to Volt Foundry, the app needs to be associated with a Volt Foundry app.

If no Foundry App is associated to your Iris project, an error message is displayed.

You must either create a new Volt Foundry app or use an existing one. For information on how to create a new Volt Foundry app, see How to Add Applications in the Volt Foundry Console User Guide.

Following are the prerequisites to publish a Web App from Volt Iris to a DX Environment

The Iris Preferences popup is now updated to support properties for seamless integration between Iris and DX. The properties are housed in a new category named "DXClient", as shown in the screenshot below.


  1. Generate a Portlet for DX

    To generate a portlet, user needs to provide path to the Maven executable.

    If the path is not provided, an error popup is displayed at the time of application build that prompts the user to it.

  2. Publish a Portlet for DX

    In addition to providing Maven path, user needs to add properties that are required to publish the generated portlet to a DX environment.

    If publish is not enabled in preferences, an error popup is displayed at the time of application build that prompts the user to enable it.


    Once all the properties are updated, the user will be able to initiate a build.

  3. MAVEN_HOME needs to be added to the environment variables on Windows machines.

  4. If you want to connect to a DX environment with a Self-Signed Certificate, ensure that you perform at least one of the following actions:

    Add the process.env.NODE_TLS_REJECT_UNAUTHORIZED = 0; entry in the /config/default.js file.

    Add the NODE_TLS_REJECT_UNAUTHORIZED = 0; entry in the Environment variables of your System.

  5. Ensure that Maven version 3.9.x is installed.

  6. Ensure that Java version 8 or 11 is installed.

The following properties are mandatory in order to publish to an DX environment:

Property Description
Enable Publish to DX Environment This option enables the user to configure properties for publishing the MX app to the DX environment.
Protocol Specifies the DX Connect protocol.
Hostname Specifies the hostname of the DX environment.
Example: “localhost”, “dx.sbx0032.play.hclsofy.com”.

Note: Specific to Iris version 9.5.45, for host name localhost, Volt Iris connects to the DX environment using the http protocol. For non local hosts, https protocol is used to connect to the DX environment.
Connect Port Specifies the port number of the Configuration Wizard(cw_profile).
Connect Username Specifies the username that is required for authenticating to the Configuration Wizard(cw_profile).
Connect Password Specifies the password that is required for authenticating to the Configuration Wizard(cw_profile).
Validate Verifies if the DX environment is available based on the hostname provided.

Note : Ensure that Connect Username and Connect Password are provided prior to validating.
Username Specifies the DX username, which will be used to authenticate with the DX environment to publish a portlet.
Password Specifies the DX password, which will be used to authenticate with the DX environment to publish a portlet.
DX Protocol Specifies the DX protocol.
DX Port Specifies the DX port.

Post Build Actions

The Build and Publish Web option in Volt Iris builds the application for the selected Web platforms and performs the selected Post Build Action. You must choose the Post Build Action in the Build and Publish Web window, before the build process begins. There are three types of Post Build Actions:

The Post Build Action is initiated after the Build is complete.

Build and Publish Web App

The Build and Publish Web App action publishes the application to your Volt Foundry environment and enables you to view your app by providing a link.

The Build and Publish Web app option also publishes the Volt Foundry app to the Volt MX Cloud.

To publish an app to the Volt MX Cloud, logging in to your Volt MX Account is mandatory.

Publish to my App Store

The Publish to my App Store action generates the web app archive and publishes the application to your Enterprise App Store. After a successful publish, a confirmation window appears, which shares a link to view the Enterprise app store on your device.

To publish an app to the Enterprise App Store, logging in to your Volt MX Account is mandatory.

For more information on Publish to my App Store, click here.

Generate Web App

The Generate Web App action generates the archives for your Web application and saves it on your file system. The Iris project does not have to be linked to Volt Foundry to complete this action.

Once the build is complete, the generated web archives will appear in your project's Volt Iris workspace > binaries folder. You can then upload and publish the app on Volt Foundry.

Alternatively, once the build is complete, you will get notified by an email from "Volt Iris – Build Service", with download links for all these binaries.

Generate a Portlet for DX

The Generate a Portlet action generates a portlet for your web application and saves it on your file system. This option also publishes the Volt Foundry app to the respective Foundry environment.

Once the build is complete, the generated portlet will appear in your project's workspace > binaries > TXArtifacts folder. You can then upload and publish the portlet on DX manually or using DX Client.

Note:
  1. The feature is available in Iris versions starting 9.5.45 and is not supported in 9.2.x versions.
  2. Desktop Web is the only supported platform.
  3. In Iris, projects of type “Reference Architecture” (the default project type) are supported. Projects of the type “Free Form” are not supported.
  4. Specific to Iris version 9.5.45, in order to build a portlet, user needs to make sure the following folder and its contents have write permissions.
    <Path to Iris installation folder>/Volt Iris/kbuild/TXTemplate
  5. In order to publish a portlet, user needs to ensure either of the following:
    • Specific to Iris versions 9.5.45 and 9.5.46, make sure the folder below has write permissions:
      <Path to Iris installation folder>/Volt Iris
    • Set environment variable VOLUME_DIR prior to launching Iris.
      • i) On Windows, run the following steps
        • Open a command prompt at location <Path to Iris installation folder>/Volt Iris
        • Run command set VOLUME_DIR= <path to directory with write permissions>
        • Run batch file "run_win.bat" to launch Iris.
        ii) On Mac, run the following steps
        • Open a terminal at location <Path to Iris installation folder>/Volt Iris
        • Run command export VOLUME_DIR= <path to directory with write permissions>
        • Run batch file "run_win.sh" to launch Iris.

Build and Publish Portlet to DX

The Build and Publish Portlet to DX action publishes the generated portlet to your DX environment and enables you to view your app in the Manage Portlet section in DX. This option also publishes the Volt Foundry app to the respective Foundry environment.

Note:
  1. The feature is available in Iris versions starting 9.5.45 and is not supported in 9.2.x versions.
  2. Desktop Web is the only supported platform.
  3. In Iris, projects of type “Reference Architecture” (the default project type) are supported. Projects of the type “Free Form” are not supported.
  4. Specific to Iris version 9.5.45, in order to build a portlet, user needs to make sure the following folder and its contents have write permissions.
    <Path to Iris installation folder>/Volt Iris/kbuild/TXTemplate
  5. In order to publish a portlet, user needs to ensure either of the following:
    • Specific to Iris versions 9.5.45 and 9.5.46, make sure the folder below has write permissions:
      <Path to Iris installation folder>/Volt Iris
    • Set environment variable VOLUME_DIR prior to launching Iris.
      • i) On Windows, run the following steps
        • Open a command prompt at location <Path to Iris installation folder>/Volt Iris
        • Run command set VOLUME_DIR= <path to directory with write permissions>
        • Run batch file "run_win.bat" to launch Iris.
        ii) On Mac, run the following steps
        • Open a terminal at location <Path to Iris installation folder>/Volt Iris
        • Run command export VOLUME_DIR= <path to directory with write permissions>
        • Run batch file "run_win.sh" to launch Iris.

Publish a Web app

Before you publish a web app, ensure that you have a project in which you have a Web app designed.

To publish a Web app, follow these steps:

  1. Open the Volt Iris project in which you have designed a web app.
  2. Sign in to your Volt MX Cloud account.
  3. Link your Iris Project to a Volt Foundry app. You can link your Project to a new or an existing Foundry app.
  4. On the Data & Services panel, click the hamburger menu near the Refresh button.
  5. Click either Create New App or Link to Existing App. The Volt Foundry console appears.
  6. If you have not already, sign in to your Volt Foundry account by using your cloud credentials.
  7. If you choose:
    • Create New App, a new Foundry app with the same name as the Iris Project is created.
    • Link to Existing App, a list of existing apps from your Volt Foundry account are displayed.
  8. To select the Volt Foundry app that you want to associate your Volt Iris app with, click Associate beside the App Name.

    The app you chose/created is successfully linked to your Iris Project.

  9. Close the Volt Foundry window and return to Volt Iris by clicking on the Iris icon on the left navigation pane.

  10. From the main menu of Volt Iris, select Build > Build and Publish Web. The Build and Publish Web window appears.

  11. Select the required Platforms and Channels for which you want to build and publish your web app.

  12. From the Post Build Action drop-down menu, select the desired Post Build Action. For more details about the Post Build Action, click here.
  13. From the Build Mode drop-down list, select your desired build mode.

    • Debug mode - To help you identify and fix errors, Volt Iris emits the complete symbolic debug information . To lessen the amount of time necessary to complete the build, the build is not optimized for code execution, so it may tend to execute slower than a build optimized for release. Also, the inclusion of the symbolic debug information causes the final executable to be larger than a release build.

    • Release mode - Volt Iris optimizes the build for execution, requiring more time to generate the build. It also does not emit the complete symbolic debug information, making the final executable smaller than a debug build.

    • Protected Mode - Applications built in Volt Iris can use the additional security enhancements by building the application in the Protected Mode. Volt IrisPlatform code for iOS and Android is equipped with mechanisms that can protect your application by detecting attacks like tampering, swizzling, debugging, jail breaking (iOS), rooting (Android), and information disclosure. Additional security mechanisms are provided through the use of White Box Cryptography to protect application business logic and source code. Application reacts to the attack by exiting upon detecting attacks to prevent further attempts. If you choose to build an application in Protected mode, then setting the public and private keys is mandatory. To do so, go to Project Settings > Protected Mode. For more details on how to generate public and private keys, click here.

    • Test Mode - To help you identify and fix errors, Volt Iris provides the ability to Test the application on the device or an emulator. When you build an app using the Test Mode, you can leverage the Jasmine testing framework of Volt Iris to thoroughly test your app and ensure your application is errors free. You can run jasmine test cases, test suites and test plans by building an app using the Test mode.

  14. You can choose to change the cloud environment on which your app will be published. To do so click on Change beside the Environment option.

  15. You can select the Vanity Domain from the drop down. The base domain is identified by appended text “[Base]” in the displayed domain name.

    Note: Change to vanity domain made in the popup is not persisted.

  16. If you do not want to use the SHA1, MD2, MD4, and MD5 hashing algorithms in your application, check Strict Mode. If you do use any of those algorithms, leave Strict Mode unchecked. Otherwise, you will receive an "Unsupported algorithm" error message.

  17. Once all the required settings are ready, click Build.
    The progress of the Web App Publish is displayed in the Build tab of Iris.
    Once the publish process is complete, a Web App URL appears on the Build tab.

  18. Click on the generated URL to preview your Web app in the Live Preview mode.
    The Iris Preview window appears. You can use this window to debug the application.
  19. You can also click on Copy to copy the URL to your clipboard and view it in a web browser of your choice.
  20. Click on View Logs to access the logs of the publish process.
  21. An email stating Application was deployed will be sent to your registered e-mail account. This email will contain the App details along with the App URL. Click the URL in the email to open the web app in your default web browser.

Generate a Portlet for DX

Before you generate a Portlet for DX, ensure that you have a project in which you have a Web app designed.

To generate a portlet for DX, follow these steps:

  1. Open the Volt Iris project in which you have designed a web app.
  2. Sign in to your Volt MX Cloud account.
  3. Link your Iris Project to a Volt Foundry app. You can link your Project to a new or an existing Foundry app.
  4. On the Data & Services panel, click the hamburger menu near the Refresh button.
  5. Click either Create New App or Link to Existing App. The Volt Foundry console appears.
  6. If you have not already, sign in to your Volt Foundry account by using your cloud credentials.
  7. If you choose:
    • Create New App, a new Foundry app with the same name as the Iris Project is created.
    • Link to Existing App, a list of existing apps from your Volt Foundry account are displayed.
  8. To select the Volt Foundry app that you want to associate your Volt Iris app with, click Associate beside the App Name.

    The app you chose/created is successfully linked to your Iris Project.

  9. Close the Volt Foundry window and return to Volt Iris by clicking on the Iris icon on the left navigation pane.

  10. From the main menu of Volt Iris, select Build > Build and Publish Web. The Build and Publish Web window appears.

  11. Select platform "Responsive Web".

  12. From the Post Build Action drop-down menu, select the Generate a Portlet for DX as a Post Build Action. For more details about the Post Build Action, click here.
  13. From the Build Mode drop-down list, select your desired build mode.

    • Debug mode - To help you identify and fix errors, Volt Iris emits the complete symbolic debug information . To lessen the amount of time necessary to complete the build, the build is not optimized for code execution, so it may tend to execute slower than a build optimized for release. Also, the inclusion of the symbolic debug information causes the final executable to be larger than a release build.

    • Release mode - Volt Iris optimizes the build for execution, requiring more time to generate the build. It also does not emit the complete symbolic debug information, making the final executable smaller than a debug build.

    • Protected Mode - Applications built in Volt Iris can use the additional security enhancements by building the application in the Protected Mode. Volt Iris platform code for iOS and Android is equipped with mechanisms that can protect your application by detecting attacks like tampering, swizzling, debugging, jail breaking (iOS), rooting (Android), and information disclosure. Additional security mechanisms are provided through the use of White Box Cryptography to protect application business logic and source code. Application reacts to the attack by exiting upon detecting attacks to prevent further attempts. If you choose to build an application in Protected mode, then setting the public and private keys is mandatory. To do so, go to Project Settings > Protected Mode. For more details on how to generate public and private keys, click here.

  14. You can choose to change the cloud environment on which your app will be published. To do so click on Change beside the Environment option.

  15. You can select the Vanity Domain from the drop down. The base domain is identified by appended text “[Base]” in the displayed domain name.

    Note: Change to vanity domain made in the popup is not persisted.

  16. If you do not want to use the SHA1, MD2, MD4, and MD5 hashing algorithms in your application, check Strict Mode. If you do use any of those algorithms, leave Strict Mode unchecked. Otherwise, you will receive an "Unsupported algorithm" error message.

  17. Once all the required settings are ready, click Build.
    The progress is displayed in the Build tab of Iris. Once the build process is complete, a link to the generated portlet appears in the Build tab.

  18. Click on the generated link to navigate to the generated portlet in your file explorer.

Publish a Portlet for DX

  1. Open the Volt Iris project in which you have designed a web app.
  2. Sign in to your Volt MX Cloud account.
  3. Link your Iris Project to a Volt Foundry app. You can link your Project to a new or an existing Foundry app.
  4. On the Data & Services panel, click the hamburger menu near the Refresh button.
  5. Click either Create New App or Link to Existing App. The Volt Foundry console appears.
  6. If you have not already, sign in to your Volt Foundry account by using your cloud credentials.
  7. If you choose:
    • Create New App, a new Foundry app with the same name as the Iris Project is created.
    • Link to Existing App, a list of existing apps from your Volt Foundry account are displayed.
  8. To select the Volt Foundry app that you want to associate your Volt Iris app with, click Associate beside the App Name.

    The app you chose/created is successfully linked to your Iris Project.

  9. Close the Volt Foundry window and return to Volt Iris by clicking on the Iris icon on the left navigation pane.

  10. From the main menu of Volt Iris, select Build > Build and Publish Web. The Build and Publish Web window appears.

  11. Select platform Responsive Web.

  12. From the Post Build Action drop-down menu, select the Build and Publish Portlet to DX as a Post Build Action. For more details about the Post Build Action, click here.
  13. From the Build Mode drop-down list, select your desired build mode.

    • Debug mode - To help you identify and fix errors, Volt Iris emits the complete symbolic debug information . To lessen the amount of time necessary to complete the build, the build is not optimized for code execution, so it may tend to execute slower than a build optimized for release. Also, the inclusion of the symbolic debug information causes the final executable to be larger than a release build.

    • Release mode - Volt Iris optimizes the build for execution, requiring more time to generate the build. It also does not emit the complete symbolic debug information, making the final executable smaller than a debug build.

    • Protected Mode - Applications built in Volt Iris can use the additional security enhancements by building the application in the Protected Mode. Volt IrisPlatform code for iOS and Android is equipped with mechanisms that can protect your application by detecting attacks like tampering, swizzling, debugging, jail breaking (iOS), rooting (Android), and information disclosure. Additional security mechanisms are provided through the use of White Box Cryptography to protect application business logic and source code. Application reacts to the attack by exiting upon detecting attacks to prevent further attempts. If you choose to build an application in Protected mode, then setting the public and private keys is mandatory. To do so, go to Project Settings > Protected Mode. For more details on how to generate public and private keys, click here.

  14. You can choose to change the cloud environment on which your app will be published. To do so click on Change beside the Environment option.

  15. You can select the Vanity Domain from the drop down. The base domain is identified by appended text “[Base]” in the displayed domain name.

    Note: Change to vanity domain made in the popup is not persisted.

  16. If you do not want to use the SHA1, MD2, MD4, and MD5 hashing algorithms in your application, check Strict Mode. If you do use any of those algorithms, leave Strict Mode unchecked. Otherwise, you will receive an "Unsupported algorithm" error message.

  17. Once all the required settings are ready, click Build.
    The progress is displayed in the Build tab of Iris.
    Once the publish process is complete, a URL to the Manage Portlet section in the DX environment appears in the Build tab.
  18. Click on the generated URL to view the deployed portlet in the DX environment.
  19. You can also click on Copy to copy the URL to your clipboard and view it in a web browser of choice.


Limitations

  1. Only one MX app can be added in one DX page. Multiple MX apps in one DX page are not supported.
  2. App state management is not supported. In DX, if user navigates from page #1 that contains an MX app portlet, to page #2 and switches back to page #1, the previous state of MX app in page #1 is not retained.
  3. To avoid CORS issues for apps that use Foundry services available at a different domain from that of DX, the DX domain should be whitelisted in Foundry.
  4. Test as a build mode in Build and Publish Web popup is not supported.

Enable Node Build for Responsive Web Apps

From the V9 ServicePack4 Fixpack 21, the build performance of Responsive Web Apps (that use the CSS Library mode) has been enhanced to use Node builds. With the introduction of Node builds, the time taken to build a Responsive Web App has reduced significantly.

Follow these steps to enable Node Builds for Responsive Web Apps:

  1. Navigate to the location of your project. For example, <your workspace folder>/<appid>/.

  2. Create a New Folder with the name custombuild (if it doesn’t already exist).

  3. In the custombuild folder, create a new file, spadw.properties.

  4. In the spadw.properties file, add the following entry:

    desktopwebNodeBuild=true

  5. Save and close the file.

  6. Build and Publish the project as usual.

Observe the time taken to build the app is less than half the time it used to take.