Skip to content

Commit

Permalink
Change way of locating starter.cmd in Fake.Azure.Kudu
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolaia committed Jun 14, 2018
1 parent fe316d3 commit cd80d36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/Fake.Azure.Kudu/Kudu.fs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ let nextManifestPath = Environment.environVarOrDefault "NEXT_MANIFEST_PATH" Stri
/// Used by KuduSync for tracking and diffing deployments.
let previousManifestPath = Environment.environVarOrDefault "PREVIOUS_MANIFEST_PATH" String.Empty
/// The path to the KuduSync application.
let kuduPath = (Environment.environVarOrDefault "GO_WEB_CONFIG_TEMPLATE" ".") |> DirectoryInfo.ofPath
let kuduPath = (Environment.environVarOrDefault "GO_WEB_CONFIG_TEMPLATE" ".") |> Path.GetDirectoryName

/// The different types of web jobs.
type WebJobType = Scheduled | Continuous
Expand Down Expand Up @@ -55,7 +55,7 @@ let kuduSync() =
let result =
Process.execWithResult(fun psi ->
{ psi with
FileName = Path.Combine(kuduPath.FullName, "kudusync.cmd")
FileName = Path.Combine(kuduPath, "kudusync.cmd")
Arguments = sprintf """-v 50 -f "%s" -t "%s" -n "%s" -p "%s" -i ".git;.hg;.deployment;deploy.cmd""" deploymentTemp deploymentTarget nextManifestPath previousManifestPath })
(TimeSpan.FromMinutes 5.)
result.Results |> Seq.iter (fun cm -> printfn "%O: %s" cm.Timestamp cm.Message)
Expand Down

0 comments on commit cd80d36

Please sign in to comment.