This documentation is for WSO2 API Manager 2.6.0. View documentation for the latest release.

All docs This doc

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Reverted from v. 3

...

  1. Run the <PRODUCT_HOME>/bin/profileSetup.sh script or <PRODUCT_HOME>/bin/profileSetup.bat script based on your operating system, with the profile flag. 

    Localtab Group
    Localtab
    titleSample commands
    Code Block
    sh <PRODUCT_HOME>/bin/profileSetup.sh  -Dprofile=<preferred-profile>
    Localtab
    titleExample
    Code Block
    titleStarting the Publisher profile
    sh <PRODUCT_HOME>/bin/profileSetup.sh  -Dprofile=api-publisher 
  2. Start the server with the specified profile. A sample command is shown below.

    The pack in place is updated after the initial optimization, and the product pack would have fetched irrelevant files for this profile. The --optimize option is used to optimize the pack again.

    Configuration optimization is one of the steps in profile optimization process. This replaces the deployment.toml file with a pre-configured profile-specific TOML file that exists in the pack. If required, you can skip this step from the profile optimization process via passing the additional --skipConfigOptimization option. This prevents the existing deployment.toml file in the pack from being overridden.

    Localtab Group
    Localtab
    titleSample commands
    Code Block
    sh <PRODUCT_HOME>/bin/wso2server.sh -Dprofile=<preferred-profile> --optimize --skipConfigOptimization
    Localtab
    titleExample
    Code Block
    titleStarting the Publisher profile
    sh <PRODUCT_HOME>/bin/wso2server.sh -Dprofile=api-publisher --optimize --skipConfigOptimization

Method 2 - Optimizing while starting the server

...