JeeWx (Jie Wei) Baidu BAE deployment document, jeewxbae
JeeWx (micro) Baidu BAE deployment document
Preparations before start
1. WAR package
:
Link: http://pan.baidu.com/s/1bnlcsk3 password: 592i
Download war package and SQL script file for deployment
2. Register a Baidu account
Http://developer.baidu.com/cloud/rt
Register the Baidu developer account. You need to bind a mobile phone number.
After registering, select the developer service and click Create application.
Create an application
After the project is created, the following page is displayed.
Click View domain name to view the demo instance
The classic hello world output on the page indicates that you have configured the deployment environment of the BAE server.
Now you need to upload the WAR package of the program you want to deploy and create a database.
The SVN installation process is not described in this document. SVN is installed by default.
Files detected from the BAE
. Bae
The provided release packages include;
Download and decompress the package. Upload the. bae folder to the server. (open the. bae folder and you can see that it is the configuration file in the tomcat/conf file)
Now we can modify the war package of our program.
Open the war package of jeewx in ZIP format.
FindDbconfig. properties
OpenDbconfig. propertiesThis is the configuration file for configuring the database link.
Red box shows the database address and user name and password to be configured.
At this time, you need to go back to the BAE to create a database. :) do you want to say--= is set up at the beginning of Mao. = #
Click Add Service
Select mysql
Click phpmyadmin to import the SQL statement.Input
Then OK.
Let's look back at this time.Dbconfig. properties: Replace the Database Name of the database you just created.
The user name and password are
Username in Basic Information:API KeyPassword:Secret Key
Overwrite your own program (jeewx) war package \ WEB-INF \ classes after modification
Upload all files and folders to the server through SVN
After the upload is successful. You can see quick release under BAE.
At this time, access the previously configured domain name to access your deployed project.