aleksandrov.dmytro
aleksandrov.dmytro

Reputation: 95

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

Upvotes: 1

Views: 106

Answers (1)

aleksandrov.dmytro
aleksandrov.dmytro

Reputation: 95

The simplest solution is

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

Upvotes: 1

Related Questions