feat: add config.example.toml

This commit is contained in:
Matthieu Bessat 2022-12-18 19:32:21 +01:00
parent af7e3bc97b
commit 8a001fbb14
2 changed files with 17 additions and 1 deletions

16
config.example.toml Normal file
View file

@ -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"

View file

@ -37,7 +37,7 @@ fn main() -> ExitCode {
env_logger::init(); env_logger::init();
info!("Starting a hugotator instance..."); 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, Ok(res) => res,
Err(e) => { Err(e) => {
error!("Cannot read the server config file."); error!("Cannot read the server config file.");