librepages
1.0.0
来自GIT存储库的自动数据静态网站
进入服务器并执行git pull
很无聊。我找不到任何免费的(自由)软件,用于自动化静态网站,例如github页面或Netlify。
这是非常最小的,只能做一个git fetch $branch
但对我有用:)
所有配置均通过./config/default.toml(可以移动到/etc/static-pages/config.toml
)完成。也添加一个网站,进行类似的条目:
pages = [
{ branch = " gh-pages " , repo = " https://github.com/realaravinth/realaravinth/ " , path = " /var/www/pages/realaravinth " , secret = " mytopsecretsuperlongpassword123 " },
]
如果pages
在pages.example.com
上部署,并且您希望部署gh-pages
分支的更改,则可以使用以下命令进行操作:
curl -v --location --request POST ' https://pages.example.com/api/v1/update '
--header ' Content-Type: application/json '
--data-raw " {
" secret " : " $token " ,
" branch " : " gh-pages "
} "