Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的网站是由我的 git 服务器中的持续集成挂钩发布的。持续集成脚本运行lektor deploy。
lektor deploy
因此,我需要我的项目文件中的发布设置,但我不喜欢有一个容易访问的发布按钮可能是胖手指的危险。
我在命令行文档中没有看到类似的内容。那不可能吗?
您应该lektor build改用适当的 http 服务器并为您的网站提供服务。(或远程部署,例如使用lektor deploy)
lektor build
开发服务器就是这样,用于开发。在生产中运行它很可能存在安全风险。