servicestackservicestack-razor

What is the best way to develop *.js with ServiceStack self-host?


Due "Copy to Output" for js files it is impossible to just edit js file and reload the page to see the changes. It is required to restart the service.

One of the possible solutions is to modify VFS to look at js files in the correct location (solution tree, not in the output folder) in DEBUG mode.

Any other suggestions?

Thanks, Dmitry


Solution

  • The simplest solution is

    SetConfig(new HostConfig
    {
        WebHostPhysicalPath = "C:\\projects\\path_to_self_host_project"
    });