Commit 485903fe authored by xiaoman's avatar xiaoman

修改运行时ip地址为本机ip

parent 9df0c8c2
......@@ -15,7 +15,7 @@ module.exports = {
// can be overwritten by process.env.HOST
// if you want dev by ip, please set host: '0.0.0.0'
host: 'localhost',
host: require('ip').address() || 'localhost',
port: 80, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
autoOpenBrowser: true,
errorOverlay: true,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment