From 8a001fbb1488137d65c3ee6f602f57f151960598 Mon Sep 17 00:00:00 2001 From: Matthieu Bessat Date: Sun, 18 Dec 2022 19:32:21 +0100 Subject: [PATCH] feat: add config.example.toml --- config.example.toml | 16 ++++++++++++++++ src/main.rs | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 config.example.toml diff --git a/config.example.toml b/config.example.toml new file mode 100644 index 0000000..0888b40 --- /dev/null +++ b/config.example.toml @@ -0,0 +1,16 @@ +[server] +host = "0.0.0.0" + +[[sites]] +slug = "etoiledebethleem" +git_remote_url = "https://forge.lefuturiste.fr/etoiledebethleem/website.git" +content_path = "content" + +[[sites.content_bindings]] +slug = "actualites" +posting_kind = "Article" + +# [[sites]] +# slug = "etoiledebethleem" +# git_remote_url = "https://forge.lefuturiste.fr/etoiledebethleem/website.git" + diff --git a/src/main.rs b/src/main.rs index c17a171..6a973b5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -37,7 +37,7 @@ fn main() -> ExitCode { env_logger::init(); info!("Starting a hugotator instance..."); - let config_str = match fs::read_to_string("./tmp/config.example.toml") { + let config_str = match fs::read_to_string("./config.example.toml") { Ok(res) => res, Err(e) => { error!("Cannot read the server config file.");