Skip to content

Commit 89e864a

Browse files
authored
fix(cli): fixed deployment with revalidation (#256)
* chore: added ::new for intermediate type * chore: Add From for intermediate * Ran cargo fmt * Fix: perseus deploy not adding /mutable
1 parent 2ad8bea commit 89e864a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packages/perseus-cli/src/deploy.rs

+9
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,15 @@ fn deploy_full(
151151
}
152152
.into());
153153
}
154+
let from = dir.join("dist/mutable");
155+
if let Err(err) = copy_dir(&from, output_path.join("dist"), &CopyOptions::new()) {
156+
return Err(DeployError::MoveDirFailed {
157+
to: output,
158+
from: from.to_str().map(|s| s.to_string()).unwrap(),
159+
source: err,
160+
}
161+
.into());
162+
}
154163
let from = dir.join("dist/render_conf.json");
155164
if let Err(err) = fs::copy(&from, output_path.join("dist/render_conf.json")) {
156165
return Err(DeployError::MoveAssetFailed {

0 commit comments

Comments
 (0)