Home  >  Article  >  Backend Development  >  How to implement automated deployment of php projects

How to implement automated deployment of php projects

藏色散人
藏色散人Original
2020-10-10 08:59:093468browse

How to implement automated deployment of PHP projects: first clone the project in the server; then change the owner; and finally execute commands such as "chmod -R 777 .git/* chmod -R 777 runtime/*".

How to implement automated deployment of php projects

Recommended: "PHP Video Tutorial"

PHP Project Automation Deployment Tutorial

I will Let’s get straight to the point! Take the Linux system as an example:

1. Server clone project

git clone git@*****.com/project.git

2. Change owner

chown www:www /www/wwwroot/project/* -R

3. Project root directory

chmod -R 777 .git/*

4. Project root directory

chmod -R 777 runtime/*

5. Project root directory.gitignore

/vendor
*.log
/thinkphp
.env
/runtime

6. It’s over. Say goodbye!

The above is the detailed content of How to implement automated deployment of php projects. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn