【发布时间】:2014-09-03 17:39:27
【问题描述】:
我的 Gruntfile:
...
connect: {
server: {
options: {
port: 8000,
hostname: 'localhost',
base: '.'
}
}
}
...
然后,当我运行grunt connect 时,我看到了:
❯ grunt connect
Running "connect:server" (connect) task
Started connect web server on http://localhost:8000
Done, without errors.
❯
那就这样吧。如果我到达我的本地主机:8000。我看到 chrome 无法连接。
【问题讨论】:
标签: gruntjs grunt-contrib-connect