Skip to content

Instantly share code, notes, and snippets.

@isaacabraham
Created April 5, 2016 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save isaacabraham/3d4425ee007ba4e29fba57ee239178f8 to your computer and use it in GitHub Desktop.
Save isaacabraham/3d4425ee007ba4e29fba57ee239178f8 to your computer and use it in GitHub Desktop.
// 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