For common framework components, Serverless Framework provides the SSR development and deployment scheme to help you develop and deploy your applications in the console.
Before deploying your application in the console, you must complete the following permission configuration:
If you have already created
CODING_QCSRole, please check whether it has complete permissions. It requires the following basic policies:
QcloudAccessForCODINGRole. If any policy is missing, please add it manually.
If the Serverless Framework and Coding DevOps services haven't been activated yet, please contact the root account to activate them and create the roles (as instructed in Directions).
prod. Custom environment is also supported.
If you choose to create an application by importing an existing project, you need to make certain modifications to some frameworks. For more information, please see the relevant framework migration documentation.
If you choose to create an application from a template, you can quickly create a web application by selecting a project template provided by Serverless Framework. During template-based deployment, the following configuration will be completed for you by default:
node_modulesin the layer. For more information on how to use a layer, please see Overview.
You can also configure more capabilities for your project in Advanced Configuration, such as custom domain name and detailed function configuration.
When configuring a custom domain name, please make sure that an ICP filing has been obtained and a CNAME record has been configured for it. For more information, please see Custom Domain Name and Certificate.
The Serverless console allows you to migrate an existing project through code hosting and folder upload.
Currently, GitHub, GitLab, Gitee, and public custom code repositories are supported. You can have your application automatically updated by selecting the trigger method for it.
You can directly import a local project by uploading the folder. For the Node.js framework, Serverless Framework will automatically create a layer and pass the dependency package
node_modules into the layer to complete the deployment.
On the Serverless Application page, click the target application to enter the application details page and view the basic information output after the project is deployed as well as monitoring metric data such as the number of requests and error statistics. This makes it easy for you to manage your project.
Click Deploy at the top of the application details page, and you can quickly modify the configuration of your project and upload it for re-deployment. Three methods are supported: local upload, code hosting, and CLI development.