Skip to content

Commit

Permalink
Merge pull request #72 from jeremyabbott/fix-build-script-for-macos
Browse files Browse the repository at this point in the history
Fixes filepath for Unix-based systems
  • Loading branch information
isaacabraham authored May 2, 2018
2 parents 62bdbf6 + 6c97797 commit 3efa2ca
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Content/build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#r "netstandard"
#I "packages/build/Microsoft.Rest.ClientRuntime.Azure/lib/net452"
#load ".paket/load/netcoreapp2.1/Build/build.group.fsx"
#load @"paket-files\build\CompositionalIT\fshelpers\src\FsHelpers\ArmHelper\ArmHelper.fs"
#load @"paket-files/build/CompositionalIT/fshelpers/src/FsHelpers/ArmHelper/ArmHelper.fs"

open Cit.Helpers.Arm
open Cit.Helpers.Arm.Parameters
Expand Down Expand Up @@ -93,7 +93,7 @@ Target "Bundle" (fun _ ->
let serverDir = deployDir </> "Server"
let clientDir = deployDir </> "Client"
let publicDir = clientDir </> "public"

let publishArgs = sprintf "publish -c Release -o \"%s\"" serverDir
run dotnetCli publishArgs serverPath

Expand Down Expand Up @@ -162,10 +162,10 @@ Target "AppService" (fun _ ->
let zipFile = "deploy.zip"
IO.File.Delete zipFile
Zip deployDir zipFile !!(deployDir + @"\**\**")

let appName = deploymentOutputs.Value.WebAppName.value
let appPassword = deploymentOutputs.Value.WebAppPassword.value

let destinationUri = sprintf "https://%s.scm.azurewebsites.net/api/zipdeploy" appName
let client = new Net.WebClient(Credentials = Net.NetworkCredential("$" + appName, appPassword))
tracefn "Uploading %s to %s" zipFile destinationUri
Expand Down

0 comments on commit 3efa2ca

Please sign in to comment.