Created
April 5, 2016 14:21
-
-
Save isaacabraham/3d4425ee007ba4e29fba57ee239178f8 to your computer and use it in GitHub Desktop.
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
// Stage everything from src\webhost except for .fs and .config files. | |
Target "StageWebsiteAssets" (fun _ -> | |
!! @"src\webhost\**" | |
-- @"src\webhost\**\*.fs*" | |
-- @"src\webhost\**\*.config" | |
|> stageWebsite) | |
// Build and stage the web application | |
Target "BuildSolution" (fun _ -> | |
"MyWebApplication.sln" | |
|> MSBuildHelper.build (fun defaults -> | |
{ defaults with | |
Verbosity = Some Minimal | |
Targets = [ "Build" ] | |
Properties = [ "Configuration", "Release" | |
"OutputPath", deploymentTemp ] }) | |
|> ignore) | |
// Stage a web job | |
Target "StageWebJob" (fun _ -> | |
[ @"src\CleanDatabase.fsx" ] | |
|> stageWebJob Continuous "CleanDatabaseWebJob") | |
// Promote all staged files into the real application | |
Target "Deploy" kuduSync | |
// Set up dependencies | |
"StageWebsiteAssets" | |
==> "BuildSolution" | |
==> "StageWebJob" | |
==> "Deploy" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment