【问题标题】:Lapis "app.lua" and "init.lua" errors when installing Fasty CMS docker container?安装 Fasty CMS docker 容器时出现 Lapis“app.lua”和“init.lua”错误?
【发布时间】:2022-01-07 06:02:25
【问题描述】:

我正在尝试按照此处提供的文档安装/设置 Fasty CMS:https://fasty.ovh/en/our/documentation

我已经安装了所有必要的要求,并遵循了所有概述的步骤。但是,在运行 docker 容器后尝试访问 http://demo.localhost:8080 的 Fasty CMS 的“常规”视图时,我收到以下错误:

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/"*/
};

我可以在 /static/admin/ 登录到 Fasty CMS 的“管理员”门户,但是我看不到 CMS 的常规视图。

【问题讨论】:

    标签: lua content-management-system arangodb


    【解决方案1】:

    我认为它缺少 Lua 编译文件。

    docker 实例运行后,能否提供docker-compose exec cms moonc **/*.moon 的输出

    Fasty 前端是用moonscript 编写的,可以编译成 Lua

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

    【讨论】:

    • 嗨@solisoft,命令的输出是:# docker-compose exec cms moonc */.moon Built applications/assets.moon Built applications/services.moon Built applications/uploads.moon 内置 lib/aqls.moon 内置 lib/arango.moon 内置 lib/basic_auth.moon 内置 lib/concerns.moon 内置 lib/http_client.moon 内置 lib/service.moon 内置 lib/utils.moon 内置 spec/ page_spec.moon
    • 我也创建了一个git文件夹
    • 文档已正确更新,感谢反馈!
    猜你喜欢
    • 2019-03-08
    • 2022-11-14
    • 2021-08-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-12-04
    • 1970-01-01
    • 2015-04-29
    相关资源
    最近更新 更多