Skip to content

Commit

Permalink
resolve link directory from deployment base
Browse files Browse the repository at this point in the history
  • Loading branch information
derklaro committed Mar 17, 2023
1 parent 1301114 commit f7693c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/handler/finish_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ async fn internal_finish_deployment(
) -> anyhow::Result<(), anyhow::Error> {
// get the paths to link
let deployment_dir = info.base_directory();
let deployment_link_path = Path::new(&options.deploy_link_dir);
let deployment_link_path = Path::new(&options.base_directory).join(&options.deploy_link_dir);

// remove the current symlink and create a new one
remove_symlink_dir(deployment_link_path).ok();
remove_symlink_dir(&deployment_link_path).ok();
symlink_dir(deployment_dir, deployment_link_path)?;

// cleanup (by removing the oldest release)
Expand Down

0 comments on commit f7693c8

Please sign in to comment.