librepages
1.0.0
Situs web statis pemindahan otomatis dari repositori git
Sshing ke dalam server dan melakukan git pull
membosankan. Saya tidak dapat menemukan perangkat lunak gratis (seperti dalam kebebasan) untuk mengotomatiskan penyebaran situs web statis seperti halaman github atau netlify.
Ini sangat minim, yang dilakukannya hanyalah git fetch $branch
tetapi bekerja untuk saya :)
All configuration is done through ./config/default.toml(can be moved to /etc/static-pages/config.toml
). Too add a website, make a similar entry:
pages = [
{ branch = " gh-pages " , repo = " https://github.com/realaravinth/realaravinth/ " , path = " /var/www/pages/realaravinth " , secret = " mytopsecretsuperlongpassword123 " },
]
If pages
is deployed at pages.example.com
and you wish to deploy changes from gh-pages
branch, you can do so with the following command:
curl -v --location --request POST ' https://pages.example.com/api/v1/update '
--header ' Content-Type: application/json '
--data-raw " {
" secret " : " $token " ,
" branch " : " gh-pages "
} "