emanuelegori / update-site.php
0 likes
0 forks
1 files
Last active 1 day ago
Sync Update sito statico da Forgejo. Eseguito periodicamente via Scheduled Task Alwaysdata
| 1 | <?php |
| 2 | /** |
| 3 | * Sync sito statico da Forgejo |
| 4 | * Eseguito periodicamente via Scheduled Task Alwaysdata |
| 5 | */ |
| 6 | |
| 7 | define('REPO_API', 'https://forgejo.it/api/v1/repos/UTENTE/REPO/commits?limit=1'); |
| 8 | define('REPO_URL', 'https://forgejo.it/UTENTE/REPO.git'); |
| 9 | define('WWW_PATH', __DIR__ . '/www'); |
| 10 | define('HASH_FILE', __DIR__ . '/last_commit.txt'); |
Newer
Older