This topic describes how to use Serverless Devs to migrate web frameworks that are available in multiple languages.

Deployment modes

Web frameworks are components of Serverless Devs that help you deploy existing framework applications to serverless architectures. You can use one of the following modes to deploy the serverless architecture:
  • NAS+container mode. This is the default mode.
    Run the following command to use this mode:
    s cli fc-default set web-framework nas
    In this mode, Function Compute is used as a runtime environment. Code is stored in Apsara File Storage NAS. You need to modify only a small section of the code.
  • Container mode
    Run the following command to use this mode:
    s cli fc-default set web-framework container
    Compared with the NAS+container mode, this mode builds the code of web projects and runtime environments, such as NGINX and PHP-FPM, into an image of the custom container runtime. This helps support the canary release. Before you use this mode, specific resources must be transformed and adapted.
Note The NAS+container mode and container mode are both implemented based on custom container runtimes. For web projects, you do not need to adapt resources.

Migrate Java frameworks

Spring Boot

Migrate Node.js frameworks

Express

Egg.js

Next.js

Nuxt.js

Hexo

Koa.js

Hapi

expressCart

Migrate Python frameworks

Flask

Tornado

Bottle

Web.py

Django

Pyramid

Migrate PHP frameworks

ThinkPHP

Laravel

Discuz

WordPress

Zblog

Ecshop

Metinfo

Whatsns

Typecho