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

本地开发使用代理proxy,上测试怎么去掉? #554

Closed
albafica2015 opened this issue Sep 6, 2017 · 2 comments
Closed

本地开发使用代理proxy,上测试怎么去掉? #554

albafica2015 opened this issue Sep 6, 2017 · 2 comments

Comments

@albafica2015
Copy link

前后端独立上线部署,在本地开发的时候使用了代理proxy,前后端代码上传到同一个服务器同ip,要去掉这个proxy吗?那么本地代码应该怎么配置呢,能够上测试的时候自动去掉?另外我只需要上dist文件夹里面内容

@albafica2015
Copy link
Author

"dev": "set BROWSER=none&&set HOST=0.0.0.0&&roadhog server",

这个 set HOST=0.0.0.0 是不是自己配置 test uat prod 的ip?

@zuiidea
Copy link
Owner

zuiidea commented Sep 6, 2017

  • 不需要去掉,具体看关于mock #348
  • 仅在开发时,本机ip可直接访问

@zuiidea zuiidea closed this as completed Sep 6, 2017
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