xyz-data / Admin-Ant

Admin-Ant
MIT License
3 stars 0 forks source link

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

Open xyzdata opened 7 years ago

xyzdata commented 7 years ago

http://0.0.0.0:8000/

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

xyzdata commented 7 years ago

https://github.com/zuiidea/antd-admin

https://gist.github.com/xgqfrms-GitHub/4cf5cc3a67a9ed094cf008f13457bfac

xyzdata commented 7 years ago

https://github.com/zuiidea/antd-admin/issues/374

xyzdata commented 7 years ago

roadhog server

https://github.com/zuiidea/antd-admin/issues/374#issuecomment-311851457

xyzdata commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

https://github.com/xgqfrms-GitHub/React-new/blob/gh-pages/package.json