Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker部署后,访问404 #249

Closed
CurtainRight opened this issue Apr 25, 2024 · 8 comments
Closed

docker部署后,访问404 #249

CurtainRight opened this issue Apr 25, 2024 · 8 comments
Assignees

Comments

@CurtainRight
Copy link

联系方式

No response

MaxKB 版本

v1.0.4 (build at 2024-04-19T16:59, commit: 7c00122)

问题描述

通过容器化部署,通过挂载config配置外部pg,同时只启动应用main.py。但是启动后访问404,后台无报错。

重现步骤

image
image

期待的正确结果

如何正确访问

相关日志输出

![image](https://github.com/1Panel-dev/MaxKB/assets/32890541/3369bf5f-4f8f-49a6-b119-6969ee9db3dd)

附加信息

image

@CurtainRight
Copy link
Author

image

@baixin513 baixin513 assigned shaohuzhang1 and unassigned baixin513 Apr 25, 2024
@shaohuzhang1
Copy link
Collaborator

需要先执行 npm run build

@CurtainRight
Copy link
Author

  1. 不对啊,我看dockerfile中只启动了pg,main.py啊
    image
  2. 而且我拉的镜像闷,还要啥npm,里面都有呢
    image

@shaohuzhang1
Copy link
Collaborator

dockerfile中web-build有执行吗

@CurtainRight
Copy link
Author

官网的docker镜像呢。
image
启动镜像区别,就是用的自己外面的数据库,然后启动的main
image

@shaohuzhang1
Copy link
Collaborator

config 的配置 添加一个DEBUG: false

@CurtainRight
Copy link
Author

就是这个配置。能够问下为什么吗,我看dockerfile CMD的时候,也没有指定啊

@shaohuzhang1
Copy link
Collaborator

项目的install/config.yaml 有指定

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants