diff options
author | Dessalines <tyhou13@gmx.com> | 2020-04-11 14:06:04 -0400 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2020-04-11 14:06:04 -0400 |
commit | 61815bce2e34e41d0c915c8fa5390d824f0828f7 (patch) | |
tree | e3eb40038840e20a4d045fd706e9cba0a2f9c2ce /server/src/main.rs | |
parent | bb287cbd076940bd09f6afb61b642370d020f91e (diff) |
Adding live reloading of config.hjson changes through UI.
- https://stackoverflow.com/questions/61159698/update-re-initialize-a-var-defined-in-lazy-static/61161271#61161271
- https://stackoverflow.com/questions/29654927/how-do-i-assign-a-string-to-a-mutable-static-variable/47181804#47181804
Diffstat (limited to 'server/src/main.rs')
-rw-r--r-- | server/src/main.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/src/main.rs b/server/src/main.rs index 601c2e0d..1c79c9ee 100644 --- a/server/src/main.rs +++ b/server/src/main.rs @@ -39,6 +39,7 @@ async fn main() -> io::Result<()> { // Create Http server with websocket support HttpServer::new(move || { + let settings = Settings::get(); App::new() .wrap(middleware::Logger::default()) .data(pool.clone()) |