Skip to content

Latest commit

 

History

History

05AppsWithDiffDepVersions

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

How To Deploy Multiple DX ScriptApps with Different Dependency Versions

General Information

This project contains the sample codes that you may use as a template for deploying Multiple Script Applications with a group of dependencies that may be conflicting with another group (i.e: same libraries but different versions).

PreRequisites

Check the list of pre-requisites here.

How To Build and Deploy This Sample Applications

  1. Set the DXClient parameters in DxModule/gradle.properties to point to the target DX endpoint and profile.
    dxProtocol=https
    dxHostname=localhost
    dxPort=10041
    dxProfileName=wp_profile
    
  2. Invoke the deployAll task of the Gradle project. (Use gradle.bat for Windows and gradlew for Linux and Mac)
    cd DxModule
    ./gradlew deployAll -DdxUsername=<username> -DdxPassword=<password>
    
        > Task :deployDxModule
        cd build/libs/
        dxclient deploy-application --dxUsername **** --dxPassword **** --dxConnectUsername **** --dxConnectPassword **** --applicationFile ReactNReactDOMv18r2.ear --applicationName ReactNReactDOMv18r2 --dxProtocol https --hostname localhost --dxPort 10041 --dxProfileName wp_profile
        ...
        ...
        > Task :deployAllScriptApps
         Task deployAllScriptApps Done
        
        > Task :deployAll
         Task deployAll Done
        
        BUILD SUCCESSFUL in 2m 17s
    
  3. In case of errors, check the details in the DXClient logs in the
    • DX Module: DxModule/build/libs/store/logs/logger.log
    • 1st ScriptApp: SampleAppReact16/store/logs/logger.log
    • 2nd ScriptApp: SampleAppReact18/store/logs/logger.log
  4. Verify and link the React16AndReact18 DX Module to a DX Theme. Follow the steps listed here.
  5. Prepare your target DX page that will host the ScriptApp. Follow the steps listed here.
  6. Add the ScriptApps into the target DX test page. Follow the steps listed here.
    • 05 React16 App (from wcmContentName in SampleAppReact16/package.json)
    • 05 React18 App (from wcmContentName in SampleAppReact18/package.json)

How To Bundle and Deploy Multiple New or Existing DX ScriptApps with Different Dependency Versions

For the detailed discussion of the important scripts and configuration that you'll need for your own projects, follow this How-To Guide.

Support

In case of questions or issues please raise via Issues tab in this github repository. HCL Support will make every reasonable effort to assist in problem resolution of any issues found in this software.