Create and publish an application

Updated at:

After you create a project, you can create and publish an application in the SOFAStack console.

Procedure

  1. Create an application.

    1. Log on to the SOFAStack console.

    2. In the left navigation pane, choose Application Management > Application List.

    3. Click Create Application, and then configure the following parameters:

      Parameter

      Description

      Application Name

      Enter a name for the application.

      The name can contain letters, digits, hyphens (-), and underscores (_). It must start with a letter and end with a letter or digit.

      Technology Stack

      Select the SOFABoot technology stack that matches the Java version in the project.

      Application Group

      Select the group for the application.

      Application Tag

      Configure tags for the application:

      • Tag Type: Select System Tag or Custom Tag.

      • Application Rating: The rating of the application.

      • Variable Value: The value of the corresponding variable.

      Application Description (Optional)

      Enter a description for the application.

    4. Click Submit.

  2. Upload the deployment package.

    1. Generate the deployment package.

      Run the mvn clean package or mvn clean install command locally to package a fat JAR file in the target directory of the project's root directory.

    2. In the left navigation pane of the SOFAStack console, choose Classic Application Service > Application Publishing > Deployment Package Management.

    3. Find the application that you created in Step 1, and then click Manage on the right.

    4. Click Upload Deployment Package, upload the deployment package for the application, and then click Confirm.

  3. Create an application service instance and associate it with the deployment package.

    1. In the left navigation pane, choose Classic Application Service > Application Publishing > Application Service.

    2. Click Create Service Instance, and then configure the following parameters:

      Parameter

      Description

      Application

      From the drop-down list, select the application created in Step 1.

      Service Instance Name

      Enter a name for the service instance.

      The name can contain letters, digits, hyphens (-), and underscores (_). It must start with a letter and end with a letter or digit.

      Deployment Package

      Select the deployment package uploaded in Step 2.

      Description (Optional)

      Enter a description for the application instance.

      Technology Stack Version

      From the drop-down list, select a technology stack version.

      Deployment Unit

      Select the deployment unit for the application.

    3. Click OK.

  4. Publish the application.

    1. In the left navigation pane, choose Classic Application Service > Application Publishing > Deployment Package Management.

    2. Select the service instance that you created in Step 3, and then choose O&M Operations > Publish and Deploy.

    3. Click Publish Now, and then click Publish All.