PHP code example of docalist / updater
1. Go to this page and download the library: Download docalist/updater 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/ */
docalist / updater example snippets
use Docalist\Updater\Updater;
, [ // Met à jour le site exemple.org
'when' => 'push', // Quand il y a un push
'on' => 'main', // Sur la branche main
'from' => 'https://github.com/exemple/site', // Du dépôt github exemple/site
'do' => [ // En exécutant les commandes suivantes
"git pull -v",
"bin/composer install",
"bin/console doctrine:migrations:migrate --no-interaction",
],
'in' => '/var/www/site' // Dans le répertoire /var/www/site
]);