The following flowchart I draw according to my own experience, does not represent all small and medium enterprises. For communication only
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/73/C3/wKioL1YGnMPC3yCtAAEhfdRYQ3s588.jpg "title=" Small Business code deployment flowchart. jpg "alt=" wkiol1ygnmpc3yctaaehfdryq3s588.jpg "/>
1. Get code to get the latest code through SVN or git by making a URL to the project
2. Java project we are compiled by ant (Compile the server), (Java Project can be compiled by Ant or maven)
PHP does not need to be compiled.
3. Package the acquired code in tar ZCF
4. Copy the wrapped package to the target server
5. Backup the original required deployment code on the target machine (optional)
6. Unzip the code package on the target server
7. Create a soft link to manage the update of the package using a soft link, and then just link to the latest code after the code is updated
Path such as: Web->/opt/project/xxx_2015-09-26-21-37-v1 (this is equivalent to canceling the old code of the soft link)
8. Restart the web (Java)
The test is given to the development, some companies have a test platform, but fortunately we are not responsible for testing
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/73/C5/wKiom1YGnFGA76q-AACu_QsvbNQ859.jpg "title=" SMB code rollback flowchart. jpg "alt=" wkiom1ygnfga76q-aacu_qsvbnq859.jpg "/>
These deployments and rollbacks are done using shell scripting.
This article is from the "Little Rookie" blog, please be sure to keep this source http://xiaocainiaox.blog.51cto.com/4484443/1698471
SME code on-line Flowchart (i)