PHP code example of sy-records / git-deploy

1. Go to this page and download the library: Download sy-records/git-deploy library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

sy-records / git-deploy example snippets

shell
php start.php
conf
[Unit]
Description=Git Depoly Service
After=network.target

[Service]
ExecStart=/usr/bin/php /workspace/git-deploy/start.php
Restart=always
RestartSec=3

[Install]
WantedBy=multi-user.target