Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes filepath for Unix-based systems #72

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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