librepages
1.0.0
Sitios web estáticos automáticos de repositorios de Git
Sshing en un servidor y realizar un git pull
es aburrido. No pude encontrar ningún software gratuito (como en la libertad) para automatizar las implementaciones de sitios web estáticas como páginas GitHub o Netlify.
This is very minimal, all it does is a git fetch $branch
but it works for me :)
All configuration is done through ./config/default.toml(can be moved to /etc/static-pages/config.toml
). También agregue un sitio web, haga una entrada similar:
pages = [
{ branch = " gh-pages " , repo = " https://github.com/realaravinth/realaravinth/ " , path = " /var/www/pages/realaravinth " , secret = " mytopsecretsuperlongpassword123 " },
]
Si pages
se implementan en pages.example.com
y desea implementar cambios de la rama gh-pages
, puede hacerlo con el siguiente comando:
curl -v --location --request POST ' https://pages.example.com/api/v1/update '
--header ' Content-Type: application/json '
--data-raw " {
" secret " : " $token " ,
" branch " : " gh-pages "
} "