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:
- How to maintain 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?
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.