andrewdavey / andrewdavey/vogue
Using Vogue hosted on another machine causes issues
- 主要语言
- JavaScript
- 星标
- 267
- 派生
- 36
- PR 合并指标
- 30 天内没有已合并 PR
描述
Hi,
I'm very new to node.js and vogue. I have an ubuntu box (192.168.1.44) setup with Node and Vogue and I do my primary web development from another machine (a built in web server). When I visit 192.168.1.44:8001, I get the vogue instructions. When I add to my site, vogue does not load properly. I used Fiddler to sniff the network and it looks like Vogue is making requests to http://localhost:8001 instead of http://192.168.1.44:8001.
Digging into the source of Vogue, it looks like my problem stems from the getScriptInfo method. It picks the document.location.host, rather than getting the location of the script. I tried to set the **vogue** object and that seems to get me a little further:
```
window.__vogue__ = {
url: 'http://192.168.1.44:8001/',
domain: '192.168.1.44',
port: 8001
};
```
But now I get messages like "Could not read stats for /home/jim/node/Content/css/Site.min.css" on the server.
Am I doing things wrong or missing a configuration step somewhere? Or is Vogue meant more as a local development tool and not to be shared by many developers?
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。