Skip to content

使用无效 PG_CONNECTION_STRING(如 "A")构建成功,但 /photos/... 刷新会 404 且容器日志报 ERR_INVALID_URL #12

@Cristina269

Description

@Cristina269

在构建 Afilmory Docker 镜像时,如果没有设置 PG_CONNECTION_STRING 会导致构建失败,因此我临时把 PG_CONNECTION_STRING=A 作为占位符。

构建过程可以顺利通过,容器也能正常启动,首页 / 能正常访问,从首页点击进入某张照片(前端路由)时页面也能显示正常。

但只要在 /photos/... 页面刷新,就会出现 404。

所以Postgres是必须的吗?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions