feat: add config.example.toml
This commit is contained in:
parent
af7e3bc97b
commit
8a001fbb14
2 changed files with 17 additions and 1 deletions
16
config.example.toml
Normal file
16
config.example.toml
Normal 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"
|
||||
|
|
@ -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.");
|
||||
|
|
Loading…
Reference in a new issue