Lektor插件将您的站点发布到surge.sh
lektor-surge的Python项目详细描述
Lektor Surge发布程序插件
安装
从命令行将Lektor Surge添加到项目中:
lektor plugins add lektor-surge
见the Lektor documentation for more instructions on installing plugins。
配置
在.lektorproject
文件中配置激增:
[servers.surge]target=surge:my-domain.com
若要强制所有流量访问https,请更新您的.lektorproject
文件:
[servers.surge]target=surge+https:my-domain.com
有关详细信息,请参见Surge guide to HTTPS。
展开
从命令行使用lektor部署站点:
lektor deploy surge