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

您好,请问server和前端怎么本地调试呢? #32

Open
yinfangyan opened this issue Aug 12, 2022 · 2 comments
Open

您好,请问server和前端怎么本地调试呢? #32

yinfangyan opened this issue Aug 12, 2022 · 2 comments

Comments

@yinfangyan
Copy link

本地同时启动了两个项目

@canyuegongzi
Copy link
Owner

本地同时启动了两个项目

server 启动:

配置修改

修改 /src/config/dev.yaml 中mysql、redis等配置信息

服务启动

执行 npm run start:dev

web 启动

配置环境信息

配置 /src/env.ts 中的userBaseWeb和casDomain(单点登录)

单点登录可以去掉, /src/session.ts 文件30多行左右把跳转单点登录的逻辑注释掉即可(线上环境中大部分单点登录会在网关层面解决掉)

启动

npm run serve

@yinfangyan
Copy link
Author

好的,感谢,已经把env和session修改了。

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