在安装 Fasty CMS 的 Docker 容器时出现 Lapis 的 "app.lua" 和 "init.lua" 错误?

我正在尝试按照这里提供的文档安装/搭建 Fasty CMS: https://fasty.ovh/en/our/documentation

我已经安装了所有必要的要求,并跟随了所有概述的步骤。然而,在运行 Docker 容器后,访问 Fasty CMS 的“常规”视图时在 http://demo.localhost:8080 上出现了以下错误:

cms_1       | 2021/11/30 13:43:06 [error] 24#0: *1 lua entry thread aborted: runtime error: ./app.lua:74: cannot open git: No such file or directory
cms_1       | stack traceback:
cms_1       | coroutine 0:
cms_1       |   [C]: in function 'require'
cms_1       |   /usr/local/share/lua/5.1/lapis/init.lua:15: in function 'serve'
cms_1       |   content_by_lua(nginx.conf.compiled:65):2: in main chunk, client: 12.12.0.1, server: , request: "GET / HTTP/1.1", host: "demo.localhost:8080"

我已经在 ArangoDB 中设置了 db_demo 数据库,并创建了 ~/.foxxrc 文件和 foxxy/app/js/config.js 文件,如下所示:

.foxxrc

[server.foxxy]
url=http://localhost:8529
username=root
password=[password_here]

config.js

var Config = {
  ".fasty.ovh": "https://fasty.ovh/_db/",
  /*".s1.fasty.ovh": "https://s1.fasty.ovh/_db/",
  ".s2.fasty.ovh": "https://s2.fasty.ovh/_db/"*/
};

我能够登录到 Fasty CMS 的“管理”门户,在 /static/admin/ 下无法查看 CMS 的常规视图。

原文链接 https://stackoverflow.com/questions/70170772

点赞
stackoverflow用户1329397
stackoverflow用户1329397

我认为 Lua 编译文件缺失了。

一旦 docker 实例运行起来了,你能否提供 docker-compose exec cms moonc **/*.moon 的输出结果。

Fasty 前端是用 moonscript 编写的,它会被编译成 Lua。

此外,请创建一个 git 文件夹,因为它是必需的(一项新功能)。

2021-12-03 08:46:20