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

本地部署,默认admin账号被禁用 #32

Open
wangchuntao816 opened this issue Jun 13, 2024 · 1 comment
Open

本地部署,默认admin账号被禁用 #32

wangchuntao816 opened this issue Jun 13, 2024 · 1 comment

Comments

@wangchuntao816
Copy link

wangchuntao816 commented Jun 13, 2024

首先,感谢作者提供这么好的一个作品。
然后,正式开始问题的描述:
版本:最新版本nestjs-ts分支
部署方式: 本地docker-compose
问题:
本地docker-compose部署之后,出现的第一个问题是:默认admin账号被禁用。
我一开始还以为是我数据库的问题,百思不得其解,最后在请求发现了,如下线索:
点击登陆时,请求的api地址是:http://124.222.54.192:4000/v1/login,这个地址应该是作者的。
然后我检查了,我本地的配置,确认没问题,但是build之后,client/dist/global.config.js 确实是上面的地址。

[root@uat-01 quickly-picture-bed]# grep -R '124.222.54.192'
client/dist/global.config.js:window.uploader_ip = 'http://124.222.54.192:4000'
client/src/global.config.ts:// 124.222.54.192
server/sql/init.sql: Source Host           : 124.222.54.192:3306
[root@uat-01 quickly-picture-bed]# cat client/public/global.config.js
// 需带上http|https协议,默认不加 "/"
window.uploader_ip = ''

期待作者的解答。

@Mr-jello
Copy link

修改client/public/global.config.js的地址,重新build

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

No branches or pull requests

2 participants