SOFABoot applications can run not only locally but also be deployed to the SOFAStack Platform, providing application services to a broader user base. This article details the end-to-end process for deploying application projects to the cloud.
Principle
On the cloud, SOFABoot's compilation and runtime behavior remains consistent with local development. The SOFAStack Platform encapsulates the SOFABoot technology stack to optimize it for the cloud environment. When creating an application, select SOFABoot as your technology stack. For more information about technology stacks, see Technical stack user guide.
Precondition
When deploying SOFABoot applications on SOFAStack Platform, you must create cloud server instances in Resource Management. During resource purchase, only CentOS 6.5 or CentOS 7.2 instance images are selectable.
Before deploying locally developed applications to the cloud, you need to comment or delete
run.mode=DEVorrun.mode=TESTconfiguration items (if any) in theapplication.propertiesfile, or change the configuration items torun.mode=NORMAL.
Deployment steps
For the end-to-end application deployment process, refer to theTechnology stack and deployment process section in the Technology stack guide.
For detailed steps on classic application service deployment, see the Quick start for Classic application service.
For containerized application service deployment, consult the Quick start for Container application service.
Logs
When encountering failures during cloud deployment, you can troubleshoot by examining logs. For more information, see Project logs.