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

🙋 问题交流。。。 | [Question] mac编译ldapadmin后端项目后 启动后访问xxxx:8888报错 #382

Closed
liujinhui1994 opened this issue Mar 3, 2025 · 5 comments
Labels
question Further information is requested

Comments

@liujinhui1994
Copy link

Question Report

2025/03/03 17:31:00 /Users/liujinhui/community/go-ldap-admin/service/isql/api_isql.go:109 record not found
[1.094ms] [rows:0] SELECT * FROM apis WHERE method = 'GET' AND path = '' AND apis.deleted_at IS NULL ORDER BY apis.id LIMIT 1
[GIN] 2025/03/03 - 17:31:00 | 500 | 1.247796ms | 192.168.43.9 | GET "/"
Error #1: open dist/index.html: file does not exist

@liujinhui1994 liujinhui1994 added the question Further information is requested label Mar 3, 2025
@eryajf
Copy link
Member

eryajf commented Mar 3, 2025

您好 @liujinhui1994👋,我已收到您的反馈,我将安排时间考虑您提交的信息并进行回复。-- 这条信息是由自动回复的机器人发出的。

Hello @liujinhui1994. I have received your feedback, and I will arrange time to consider the information you submitted and reply. -- This message is sent by an automatic reply robot.

@liujinhui1994
Copy link
Author

@eryajf 可以帮看下吗

@eryajf
Copy link
Member

eryajf commented Mar 3, 2025

本地开发需要把前端的dist放到项目里来,具体看router里的定义

@liujinhui1994
Copy link
Author

我是本地修复完问题后,打包make build-linux 在服务器上执行报错的 @eryajf

@eryajf
Copy link
Member

eryajf commented Mar 4, 2025

是一样的,打包之前,需要先把dist放进去,具体你可以参看下这里的命令:

RUN release_url=$(curl -s https://api.github.com/repos/eryajf/go-ldap-admin-ui/releases/latest | grep "browser_download_url" | grep -v 'dist.zip.md5' | cut -d '"' -f 4); wget $release_url && unzip dist.zip && rm dist.zip && mv dist public/static

@eryajf eryajf closed this as completed Mar 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants