Skip to content

Commit

Permalink
Copy files a bit earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
snoyberg committed Apr 5, 2024
1 parent 675e2dd commit a5ac69e
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions make-it-static/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,13 @@ fn main() -> Result<()> {

let client = reqwest::blocking::Client::new();
let running_server = RunningServer::new(&client)?;

// Wait until after the server has started to ensure we clone the content repo.
let status = Command::new("cp")
.args(["-r", "../content/static", "../public/assets"])
.status()?;
anyhow::ensure!(status.success(), "Failed copying assets dir");

let mut app = App {
processed: HashSet::new(),
queue: VecDeque::new(),
Expand All @@ -81,12 +88,6 @@ fn main() -> Result<()> {
process(&mut app, route)?;
}

// Wait until after the server has started to ensure we clone the content repo.
let status = Command::new("cp")
.args(["-r", "../content/static", "../public/assets"])
.status()?;
anyhow::ensure!(status.success(), "Failed copying assets dir");

Ok(())
}

Expand Down

0 comments on commit a5ac69e

Please sign in to comment.