Browse Source

Fix serve not working with config flag

Closes #294
index-subcmd
Vincent Prouillet 6 years ago
parent
commit
50a79c52f3
2 changed files with 7 additions and 2 deletions
  1. +5
    -0
      CHANGELOG.md
  2. +2
    -2
      src/cmd/serve.rs

+ 5
- 0
CHANGELOG.md View File

@@ -1,5 +1,10 @@
# Changelog


## 0.4.0 (unreleased)

- Fix `serve` not working with the config flag

## 0.3.4 (2018-06-22)

- `cargo update` as some dependencies didn't compile with current Rust version


+ 2
- 2
src/cmd/serve.rs View File

@@ -115,8 +115,8 @@ pub fn serve(interface: &str, port: &str, output_dir: &str, base_url: &str, conf
.chain_err(|| "Can't watch the `content` folder. Does it exist?")?;
watcher.watch("templates/", RecursiveMode::Recursive)
.chain_err(|| "Can't watch the `templates` folder. Does it exist?")?;
watcher.watch("config.toml", RecursiveMode::Recursive)
.chain_err(|| "Can't watch the `config.toml` file. Does it exist?")?;
watcher.watch(config_file, RecursiveMode::Recursive)
.chain_err(|| "Can't watch the `config` file. Does it exist?")?;

if Path::new("static").exists() {
watching_static = true;


Loading…
Cancel
Save