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
项目跑起来了,但是登录接口报504,登录不了 。 #8
Comments
你好。我也遇到这个问题,请问你怎么解决的? |
我也是,请问你们是怎么解决的 @cgygd @oo10 |
你们解决了吗 - - |
@YuFengDing 你的 |
your database usernameDB_USER=root your databaseDB_PASSWORD='' Koa is listening to this portPORT=8889 |
@YuFengDing npm run dev 然后在另一个窗口运行 npm run server 分开查看两个窗口的报错信息。如果run server的后端报 |
@Molunerfinn 我把两个端口前台和后台都换了 但是请求的时候现在爆出 500 |
@YuFengDing 改了后端的端口的话你需要把proxyTable里的端口也换成跟Koa的端口一致: |
@Molunerfinn 看到具体报错了 |
$ npm run dev
[HPM] Proxy created: /auth -> http://localhost:8889
[HPM] Proxy created: /api -> http://localhost:8889
[HPM] Error occurred while trying to proxy request /auth/user from localhost:8080 to http://localhost:8889 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
配置了自己的mysql密码,这是什么原因导致的呢。
The text was updated successfully, but these errors were encountered: