This topic describes how to smoothly migrate a Web application to Function Compute on the Function Compute console. In contrast to traditional deployment methods, you can skip the steps such as purchasing an ECS instance and deploy traditional applications to the cloud for production purposes. In the meantime, features such as elastic scaling, pay-as-you-go, and O&M-free are offered.

Step 1: Create a Web application

  1. Log on to the Function Compute console.
  2. In the top menu bar, select a region.
  3. In the left-side navigation pane, choose Application Center > Create Web Monolithic Application.
    create_web_app
  4. Configure the Web application according to the configuration wizard on the page.
    1. In the wizard, set Basic Information on the first page. Then, click Next.
      set_basic_information
      Parameter Description Example
      Language Select the language type you need. Nodejs
      Framework /Environment Select the framework or runtime. Next.js
      Code Package Select a deployment package.
      • Upload program: Upload your local application code package.
      • Use sample program: Use the system provided code package.
      Use sample application
      Application Name The name of the application. my-fc
    2. In the wizard, set the Configuration Information on the second page. Then, click Next.
      Parameter Description Example
      command The system automatically fills in the start command of the Web application detected from your code package.

      If the system cannot detect the start command, it needs to be manually configured.

      Keep default
      port The system automatically specifies the listening port of the Web application detected from the code package.

      If the system cannot detect a listening port, you need to configure it manually.

      Keep default
  5. On the application deployment progress page, click OK.
    create_confirm
    You can see the prompt that the application is being created on the current page. You can view the created events on the application details page. You can also click application Event t to view.
    Note When the system packages and processes the files, do not close the page. Otherwise, the application fails to be created.
    Creating

Step 2: Access the application

  1. Go to the application Overview page.

    After the application is created successfully, it is automatically redirected to the Overview page, where you can view the basic information about the created application.

    If you have exited the Overview page, you can re-enter by following the steps below:
    1. In the left-side navigation pane of the Function Compute console, click Application Center.
    2. On the Application List tab, locate the target application, and then click the application name.select_app
  2. Click the domain name in the Basic Information area to access the current application.
    visit_app