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 navigation pane on the left, choose Application Management > Applications.

    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 a digit.

      Technology Stack

      Select the SOFABoot technology stack that corresponds to the Java version used in your project.

      Application Group

      Select the group where the application resides.

      Application Tags

      Configure tags for the application:

      • Tag Type: Select System Tag or Custom Tag.

      • Application Classification: The category of the application.

      • Variable Value: The corresponding variable value.

      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. A fat JAR package is generated in the target directory of the project's root directory.

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

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

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

  3. Create a service instance and associate the deployment package.

    1. In the navigation pane on the left, 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 a 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 a deployment unit for the application.

    3. Click OK.

  4. Publish the application.

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

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

    3. Click Publish Now, and then click Full Release.