Closed SabotageAndi closed 4 years ago
As diagnostics are enabled by default and if your filesystem isn't writeable (happened for me on Azure Appservices), the server didn't start, because it could not write to the Site.map file.
The File.WriteAllText at https://github.com/SaturnFramework/Saturn/blob/master/src/Saturn/Diagnostics.fs#L69 throws this exception.
File.WriteAllText
Disabling diagnostics for release build with
#if !DEBUG disable_diagnostics #endif
helped to start it on my deployment target.
Happens with Saturn 0.8.
Fixed in https://github.com/SaturnFramework/Saturn/commit/bd623af3ceedb5da1d59be4d56009b3aaadad402
As diagnostics are enabled by default and if your filesystem isn't writeable (happened for me on Azure Appservices), the server didn't start, because it could not write to the Site.map file.
The
File.WriteAllText
at https://github.com/SaturnFramework/Saturn/blob/master/src/Saturn/Diagnostics.fs#L69 throws this exception.Disabling diagnostics for release build with
helped to start it on my deployment target.
Happens with Saturn 0.8.