摘要 |
An automatic deployment method and terminal. The method comprises the following steps: following a project object model POM file in a stipulated configuration Maven (S11); running a pre-programmed plug-in in the Maven (S12), wherein the plug-in is programmed according to the project management tool Maven, a version control tool SVN and a secure shell SSH protocol; acquiring a latest code from an SVN server (S13); compiling and packing the acquired latest code by utilizing the Maven, and generating a packed file (S14); connecting to a remote server by utilizing the SSH protocol, and performing preprocessing before the packed file is uploaded (S15); uploading the packed file to the remote server by utilizing the SSH protocol (S16); and restarting a site service of the remote server, and recording and reporting a deployment log (S17). The method and the terminal provide a full set of lightweight solutions including development, test, compiling, packing, uploading, server configuration, etc. for the deployment of a project. |