The main content of this article is about allowing the server to connect to the code cloud webhooks to achieve automatic deployment. It has certain reference value. Interested friends can learn about it.
The Code Cloud WebHook function is to help users push code and automatically call back an http address you set.
Service installation git
php code (must be accessible from the external network)
&1"); system('cd '.$local.' && "C:/Program Files/Git/cmd/git.exe" pull '.$remote.' 2>&1', $out); echo $out; die('done' . date('Y-m-d H:i:s')); ?>
fill Enter the domain name and click submit
Complete
Related tutorials:PHP video tutorial
The above is the detailed content of Server docking code cloud webhooks realize automatic deployment. For more information, please follow other related articles on the PHP Chinese website!