ServiceStack: Self-Host LiveReload not working

前端 未结 2 415
鱼传尺愫
鱼传尺愫 2021-01-25 03:13

I have a self hosted ServiceStack application which I intend to use to develop an angular application with.

The problem is, previously, every time I\'ve made a change to

2条回答
  •  无人及你
    2021-01-25 03:59

    The issue is that he was changing the source file and not the output file. Since SS copies the files to /bin/debug he needed to change that version.

    Using HostConfig settings, we were able to to use the WebHostPhysicalPath property in the following way during development, while setting up the SS Config:

    SetConfig(new HostConfig {
    #if DEBUG
        DebugMode = true,
        WebHostPhysicalPath = Path.GetFullPath(Path.Combine("~".MapServerPath(), "..", "..")),
    #endif
    });
    

    This took us out of /bin/debug and back to the source.

提交回复
热议问题