Home >Backend Development >PHP Problem >How to implement automated deployment of php projects
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/*".
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!