You can use Cloud Toolkit to quickly deploy applications to Server-Side Application Engine (SAE). This method is ideal for rapid application iteration and updates. After you install and configure Cloud Toolkit in IntelliJ IDEA, you can set the deployment parameters on the configuration interface to automate the deployment.
Prerequisites
An SAE application has been deployed. For more information, see Deploy an application in the console.
Cloud Toolkit has been installed and configured. For more information, see Install and configure Cloud Toolkit in IntelliJ IDEA.
Procedure
- Open your project in IntelliJ IDEA.
- In the top menu bar of IntelliJ IDEA, choose .
- In the Deploy to SAE dialog box, set the deployment parameters.
Note If an application has not been created in SAE, click Create Serverless Application on SAE Console in the upper-right corner of the dialog box to open the SAE console and create an application.
The parameters are described as follows.
Parameter Parameter Description Application Region The region where the application is located. Namespace The namespace where the application is located. Application The name of the application. Deploy File Maven Build When you select Maven Build, the system automatically adds a Maven task to build the deployment package. To deploy a submodule from a multi-module project, see Deploy a submodule from a multi-module project. Upload File Select this method to upload a WAR or JAR package for deployment. Image If you select Image, enter an image address to deploy the application. Gradle Build Select this method to directly build and deploy the application. Note If you deployed the application from a JAR or WAR package, you can use only the Maven Build or Upload File deployment methods in Cloud Toolkit. If you deployed the application from an image, you can use only the Image deployment method. - Click Apply, and then click Run.
Verify the result
After the deployment begins, the Console pane in IntelliJ IDEA displays the deployment logs. You can check the logs to verify the deployment result.
Alternatively, log on to the SAE console and view the update records on the Change History page of the application.