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

http://0.0.0.0:8000/ & error #1

Open
xyzdata opened this issue Jun 29, 2017 · 6 comments
Open

http://0.0.0.0:8000/ & error #1

xyzdata opened this issue Jun 29, 2017 · 6 comments

Comments

@xyzdata
Copy link
Contributor

xyzdata commented Jun 29, 2017

http://0.0.0.0:8000/

dial tcp 0.0.0.0:8000: connectex: The requested address is not valid in its context.

@xyzdata
Copy link
Contributor Author

xyzdata commented Jun 29, 2017

zuiidea/antd-admin#374

@xyzdata
Copy link
Contributor Author

xyzdata commented Jun 29, 2017

roadhog server

zuiidea/antd-admin#374 (comment)

@xyzdata
Copy link
Contributor Author

xyzdata commented Jun 29, 2017

http://localhost:8000/

    "scripts": {
        "dev": "set BROWSER=none&&set HOST=127.0.0.1&&roadhog server",
        "lint": "eslint --fix --ext .js src",
        "build": "roadhog build"
    },

@xyzdata
Copy link
Contributor Author

xyzdata commented Jun 29, 2017

proxy

https://www.npmjs.com/package/roadhog#proxy

image

// 接口代理示例

"proxy": {
    "/api/v1": {
        "target": "http://api.zuiidea.com",
        "changeOrigin": true,
        "pathRewrite": { "^/api/v1" : "/v1" }
    },
    "/api/v2": {
        "target": "http://192.168.0.110",
        "changeOrigin": true,
        "pathRewrite": { "^/api/v2" : "/api/v2" }
    }
},

@xyzdata
Copy link
Contributor Author

xyzdata commented Jun 29, 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

1 participant