-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
77f6448
commit 756aea5
Showing
6 changed files
with
75 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,3 +31,4 @@ src/packages/* | |
packages/ | ||
output/ | ||
paket-files/ | ||
.fake/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
// -------------------------------------------------------------------------------------- | ||
// FAKE build script | ||
// -------------------------------------------------------------------------------------- | ||
|
||
#I @"packages/FAKE/tools/" | ||
#r @"FakeLib.dll" | ||
|
||
open Fake | ||
open System | ||
|
||
Environment.CurrentDirectory <- __SOURCE_DIRECTORY__ | ||
|
||
let solutionFile = "Demonstrator.sln" | ||
|
||
let deploymentTemp, | ||
deploymentTarget, | ||
nextManifestPath, | ||
previousManifestPath, | ||
kuduSyncCmd = | ||
getBuildParam "DEPLOYMENT_TEMP", | ||
getBuildParam "DEPLOYMENT_TARGET", | ||
getBuildParam "NEXT_MANIFEST_PATH", | ||
getBuildParam "PREVIOUS_MANIFEST_PATH", | ||
getBuildParam "KUDU_SYNC_CMD" | ||
|
||
Target "BuildSolution" (fun _ -> | ||
!! solutionFile | ||
|> MSBuildRelease deploymentTemp "Rebuild" | ||
|> ignore) | ||
|
||
Target "CopyWebsite" (fun _ -> | ||
!! @"src\webhost\**" | ||
-- @"src\webhost\typings" | ||
-- @"src\webhost\**\*.fs" | ||
-- @"src\webhost\**\*.config" | ||
-- @"src\webhost\**\*.references" | ||
-- @"src\webhost\tsconfig.json" | ||
|> FileHelper.CopyFiles deploymentTemp) | ||
|
||
Target "DeployWebJob" (fun _ -> | ||
@"src\Sample.fsx" | ||
|> FileHelper.CopyFile (deploymentTemp + @"\app_data\jobs\continuous\Sample\")) | ||
|
||
Target "DeployWebsite" (fun _ -> | ||
ProcessHelper.ExecProcess(fun psi -> | ||
psi.FileName <- kuduSyncCmd | ||
psi.Arguments <- sprintf """-v 50 -f "%s" -t "%s" -n "%s" -p "%s" -i ".git;.hg;.deployment;deploy.cmd""" deploymentTemp deploymentTarget nextManifestPath previousManifestPath) | ||
TimeSpan.Zero | ||
|> ignore) | ||
|
||
"CopyWebsite" | ||
==> "BuildSolution" | ||
==> "DeployWebJob" | ||
==> "DeployWebsite" | ||
|
||
RunTargetOrDefault "DeployWebsite" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
FSharp.Core | ||
Suave | ||
Newtonsoft.Json | ||
FSharp.Data | ||
Microsoft.ApplicationInsights.TraceListener | ||
Microsoft.ApplicationInsights.WindowsServer | ||
|
||
File:Domain.fs | ||
File:Logic.fs |