【发布时间】:2020-09-27 23:38:58
【问题描述】:
我从 Vapor 3 更新到 4,从 Xcode 11 更新到 12。现在 Leaf 找不到我的 *.leaf 模板。我收到“noTemplateFile”错误。
【问题讨论】:
我从 Vapor 3 更新到 4,从 Xcode 11 更新到 12。现在 Leaf 找不到我的 *.leaf 模板。我收到“noTemplateFile”错误。
【问题讨论】:
我在这里找到了答案:https://theswiftdev.com/how-to-create-your-first-website-using-vapor-4-and-leaf/
诀窍是在方案的选项中添加“自定义工作目录”。我添加了我的项目的根目录并且它工作了。
【讨论】:
只需将架构修改为 Vapor 服务器的目录即可。 分步指南在这里https://docs.vapor.codes/4.0/xcode/
【讨论】: