Use git to download the project and deploy it on the local and remote servers.

Source: Internet
Author: User

Use git to download the project and deploy it on the local and remote servers.
1. Configure Git1. download and install 2. After installation, right-click the desktop and select three more branches.

3. git clone code from git: 1> specify the url and directory (usually a workspace). If Branch is not entered, the master is downloaded by default, generally, Branch is used to specify the Branch to be downloaded. 2. Click OK to enter the user name and password. 2. publish to Server 1. configure maven to use local maven, specify it as the development environment, remove test, clean, and package. If there is an error in the project, re-introduce each pom through reimport. xml file. After maven is packaged, you can publish the project to the Remote Test server. 2. publish to Remote Test Server

1> clean, package

2> Find the corresponding war package under target, copy it, and decompress it.

3> xshell connects to the server, opens xftp in xshell, and overwrites the file in the path/export/App/auction.shop.jd.com with the decompressed file. The file has been uploaded.

4> xshell restart tomcat (the test server deployed on linux ),

5> restart process: Go to the corresponding directory ----> stop ----> start ----> View logs

6> Note: If a process exists after stopping, you can run the ps-ef | grep tomcat command to view the tomcat process and find the corresponding process and kill [pid] it to kill the process. /start. sh)

3. Deploy to a local server

To access a locally deployed project, you need to reconfigure tomcat (re-configure tomcat for each added project), click +, add tomcat, and configure port 80, under the development menu, click +. Select Artifact, select the war exploded package, and deploy the project to tomcat. After configuration, clean and package are complete, debug can be started.

3. Firefox access (replace the host on the premise that Firefox has installed the HostAdmin plug-in and configured the host)

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.