我正在使用 docker for mac 版本 1.12.0-rc2 进行 React 项目。我的工作流程是这样的:
src/OS X 上的文件夹已安装到容器中src/它会被转换为 ES5 并放入其中public/(这是有效的)。public/会触发热重新加载(在我的本地主机上有效,但在容器中无效)。这是我的步骤 3 中的步数观察器代码:
// root = "/src"
const watcher = chokidar.watch(root, {
usePolling: true,
awaitWriteFinish: {
pollInterval: 100,
stabilityThreshold: 250
},
ignored: /\.(git|gz|map)|node_modules|jspm_packages|src/,
ignoreInitial: true,
persistent: true
})
.on("change", function fileWatcher(filename) {
const modulePath = filename.replace(`${root}/`, "");
wss.clients.forEach(function sendFileChange(client) {
send("filechange", modulePath, client);
});
if (cache[filename]) {
wss.clients.forEach(function sendCacheFlush(client) {
send("cacheflush", filename, client);
});
delete cache[filename];
} …Run Code Online (Sandbox Code Playgroud) 有没有办法获取Share Point应用程序托管在当前服务器的根URL?例如,如果我想从我正在键入的网站加载信息:
SPSite site = new SPSite(http://dev3);
Run Code Online (Sandbox Code Playgroud)
但是当我将开发代码移动到生产服务器上时,我必须使用新的服务器URL手动替换站点URL:
SPSite site = new SPSite(http://sp2010);
Run Code Online (Sandbox Code Playgroud)
我在Visual Studio 2010中使用C#.
c# sharepoint visual-studio-2010 visual-studio sharepoint-2010