This documentation is for WSO2 App Factory 1.0.0. View documentation for the latest release.

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

By default App Factory automatically builds and deploys branches of the code repository every time a code commit happens. App Factory periodically checks for code commits. You can override this default behavior by changing the configurations under the <ApplicationDeployment> element in <AF_HOME>/repository/conf/appfactory/appfactory.xml file. Default configurations appear only in for the Development stage, but you can define it in all other stages that appear in the same file.

Apply the following changes to any life cycle stage to enable/disable automatic build for a given time duration.

  1. To enable or disable auto building:

    Code Block
    languagehtml/xml
    <Buildable>true</Buildable>
  2. Add the URL of the deployment server for each life-cycle stage. (Eg. This can be the server URL of your WSO2 Application Server instance)
     

    Code Block
    languagehtml/xml
    <DeploymentServerURL>your deployment server URL</DeploymentServerURL>
  3. To enable auto deployment and change the polling period to the repository to check for the new commits. The time period is configured in minutes. So the example below shows 6 minutes.

    Code Block
    languagehtml/xml
    <AutomaticDeployment enabled="true">
        <PollingPeriod>6</PollingPeriod>
    </AutomaticDeployment>