From 3096840df9d49a2a53c08314d978d2aa503ade4e Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sat, 11 Feb 2023 10:49:22 +0100 Subject: doc standalone --- readme.md | 4 +++- server/Cargo.toml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index 94a1ca0..811e604 100644 --- a/readme.md +++ b/readme.md @@ -37,7 +37,9 @@ When changing code, use `make watch` to re-build things automatically as needed. (run `cargo install systemfd cargo-watch` if needed) The server's bind address can be controlled using the `BIND` environment -variable. +variable. In production you can also activate the `standalone` feature to embed +all assets into the binary; This speeds it up and allows the server to run from +just the binary. If you use this project or have any suggestions, please [contact me](https://metamuffin.org/contact) diff --git a/server/Cargo.toml b/server/Cargo.toml index 907b8c4..4a61294 100644 --- a/server/Cargo.toml +++ b/server/Cargo.toml @@ -16,5 +16,5 @@ serde_json = "1.0.93" include_dir = "0.7.3" [features] -default = ["standalone"] +default = [] standalone = [] -- cgit v1.2.3-70-g09d2