mirror of
https://github.com/zyllian/webdog.git
synced 2025-05-10 02:26:42 -07:00
Handle changes to static files and site config
This commit is contained in:
parent
58f252ed48
commit
c67fcd19a7
2 changed files with 51 additions and 25 deletions
|
@ -12,7 +12,7 @@ enum Mode {
|
|||
#[cfg(feature = "serve")]
|
||||
#[tokio::main]
|
||||
async fn main() -> anyhow::Result<()> {
|
||||
let site = Site::new(Path::new("site"))?;
|
||||
let site = Site::new(&Path::new("site").canonicalize()?)?;
|
||||
|
||||
let mut mode = Mode::Build;
|
||||
for arg in std::env::args() {
|
||||
|
@ -34,7 +34,7 @@ async fn main() -> anyhow::Result<()> {
|
|||
|
||||
#[cfg(not(feature = "serve"))]
|
||||
fn main() -> anyhow::Result<()> {
|
||||
let site = Site::new(Path::new("site"))?;
|
||||
let site = Site::new(&Path::new("site").canonicalize()?)?;
|
||||
site.build_once()?;
|
||||
|
||||
println!("Build complete!");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue