What is the standard deployment method of the PHP project?

Source: Internet
Author: User
Please introduce the deployment method of your PHP project. How to maintain the third-party source code? How does one ensure dependency? Is there a standard dependency maintenance method? How to maintain a third-party lib? Especially C module? How to Upgrade PHP version? What are the preparations for the upgrade? Please introduce the deployment method of your PHP project.

There are several main points of interest:
  1. How to maintain third-party source code? How does one ensure dependency? Is there a standard dependency maintenance method?
  2. How to maintain a third-party lib? Especially C module?
  3. How to Upgrade PHP version? What are the preparations for the upgrade?
Reply content: let me answer the first question. The world of PHP has Composer (http://getcomposer.org/ ), You can think of npm as Node. js, and gem as Ruby. It has an official Packagist (https://packagist.org/ ).

General Project deployments also have related tools such as phing (http://www.phing.info/ Can be considered as Ant in Java.

For example, my current project uses the Github + Jenkins solution. Each developer fork from the main repository to his account, and then submits the Pull Request. Pull Request will trigger Jenkins's Pull Testing and deploy the changes to the QA environment. Then, how can we test the changes. The deployment script mainly involves clearing the original project files and databases, retrieving the latest version in the code library, and running phing (including a series of QA tools such as database Migration, PHPUnit, and PHP CodeSniffer). The process of final deployment to the production environment is similar. At the beginning of the team, the company gave us several machines to start working :(

At the beginning, after the development, the acceptance is passed directly to the server git pull. Well, I also admit that I could do this. How can we endure it? How can I do such a low thing? Then we developed a launch deployment system, Walle Wali-web deployment system. In addition, other companies have deployed and used the service. Git Project address: meolu/walle-web · GitHub Welcome to fork trial and star.

Develop, test, and launch processes at least. For details, see code management and deployment of the technical team.

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.