How to implement automated deployment of php projects

藏色散人
Release: 2023-03-06 15:20:02
Original
3530 people have browsed it

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
Copy after login

2. Change owner

chown www:www /www/wwwroot/project/* -R
Copy after login

3. Project root directory

chmod -R 777 .git/*
Copy after login

4. Project root directory

chmod -R 777 runtime/*
Copy after login

5. Project root directory.gitignore

/vendor
*.log
/thinkphp
.env
/runtime
Copy after login

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!

Related labels:
php
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template