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

115 Views Asked by At

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

1

There are 1 best solutions below

0
On BEST ANSWER

The simplest solution is

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