View Code? Open in Web Editor
NEW
This is an update tool designed for php. It can cooperate with GitHub Hook function to realize simple automatic deployment.
PHP 98.63%
Batchfile 1.37%
simple-php-updater's Introduction
简体中文
- This is an update tool designed for php;
- It can cooperate with GitHub Hook function to realize simple automatic deployment;
- Download the zip file to the server;
- Automatic unzip;
- Clear the target file (directory);
- Copy the new file (directory) to the target file (directory);
- The file (directory) to be protected can be set;
3.1. Manually deploy the website on github to the virtual host
- Configure
deploy.json
in the same directory as deploy.php
;
- Visit the
deploy.php
on the virtual host through a browser;
- Complete the deployment;
3.2. Automatically update markdown content files to the website
- Configure
deploy.json
in the same directory as deploy.php
;
- Use the hook function of github to monitor specific branches of the source code library;
- Set the hook's push event to trigger an http request to access the
deploy.php
on the virtual host;
- Complete the deployment;
- When copying, existing files will be overwritten;
- Chinese file names may not be deleted;