Project deployment online process

When the project is deployed and launched, various errors will occur. If you follow the steps to deploy, errors will be greatly reduced. Proceed as follows:

1. You need to know how many servers there are and how the server environment is built.

2. Is the  server in the same computer room ?

     a)  In the same computer room , communicate through the intranet   -   fast speed

     b)  Not in the same computer room , communicate through the external network    --   slow speed

3.  Server hardware and operating system

  If the application has high computing requirements, deploy it on a server with more CPU cores. If the application has high memory requirements, deploy it on a server with more memory.

 Computer resources should be used reasonably.

     a)  Hardware

  1. Memory   -   how much ?
  2. CPU --   how many cores ?  
  3. Hard drive  -   how big is it ?  
  4. IO read and write speed -  mechanical hard drive or SSD (solid state drive)?

    b)  Operating system

  1. Windows?
  2. Linux?
  3. 3264

4.  Do the final functional test

5.    SVN tagging

 It is different from Maven's war package. The tag convention is read-only, and the items in it cannot be modified. Projects are published based on tags. Tag is used for project publishing.

6, the  packager ( Maven ) maven into a war package.

7.  Database script and initial data

Database scripts and data are also part of the program and cannot be forgotten.

8.  Write release documents

It is very important to write release documents. When the project is released, various problems will always occur, so it is necessary to write release documents and release the project step by step according to the documents.

a)  Write down the content of the release and the release steps

b)  The mechanism of rollback

  1. Program rollback: The project is rolled back from the new version to the previous version.
  2. Data rollback: The changes to the database can be rolled back.
  3. Rollback of the call relationship between systems

9.  Implement the release

Program to be packaged

    1. Database script and data

    2. The configuration file of nginx, the configuration file is universal. Either in Windows or in Linux.

    3. The static resource file upload directory in the project is also packaged. Packaged as tar.gz

Project packaging

 maven command 

      Project -->Run As -->Maven build...

     Enter the command clean package in Goals (clear first and then package, what is cleared is the content under the target. To skip the test skip tests tick) can be marked as a war package.

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325553171&siteId=291194637