Opengist Logo emanuelegori's Gists

Explore

  • All gists
  • Topics
  • Users
Copyright 2024 - 2025 emanuelegori.uno
Give feedback on the new UI Powered by Opengist ⋅ 47ms

user:thomas gists created by user

title:mygist gists with given title

description:sync gists with given description

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

all:systemctl search all fields

Login
p

php

Recently created Least recently created Recently updated Least recently updated
emanuelegori

emanuelegori / update-site.php

Last active 3 months ago php update-site

Sync Update sito statico da Forgejo. Eseguito periodicamente via Scheduled Task Alwaysdata

0 0 1
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');