Skip to content
This repository has been archived by the owner on Feb 23, 2021. It is now read-only.

Commit

Permalink
Experimenting with web site deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
loudej committed Apr 4, 2014
1 parent 82f4d4b commit 35e2228
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .deployment
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[config]
command = deploy.cmd
25 changes: 25 additions & 0 deletions deploy.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
@ECHO OFF
PUSHD %~dp0
SETLOCAL

IF NOT DEFINED DEPLOYMENT_SOURCE (
SET DEPLOYMENT_SOURCE=%~dp0%.
)

IF NOT DEFINED DEPLOYMENT_TARGET (
SET DEPLOYMENT_TARGET=%~dp0%artifacts\deploment
)

ECHO Downloading NuGet.exe
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest 'https://www.nuget.org/nuget.exe' -OutFile '.nuget\nuget.exe'"

ECHO Downloading ProjectK
.nuget\nuget.exe install ProjectK -Version 0.1-alpha-291 -OutputDirectory packages -NoCache
SET K_CMD=%~dp0packages\ProjectK.0.1-alpha-291\tools\k.cmd

CD "%DEPLOYMENT_SOURCE%\samples\Builder.Filtering.Web"
CALL "%K_CMD%" restore
CALL "%K_CMD%" pack --out "%DEPLOYMENT_TARGET%"

POPD

4 changes: 4 additions & 0 deletions samples/Builder.Filtering.Web/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@
"version" : "0.1-alpha-*",
"dependencies": {
"Helios" : "0.1-alpha-*",
"Microsoft.AspNet.Server.WebListener" : "0.1-alpha-*",
"Microsoft.AspNet.Abstractions": "0.1-alpha-*"
},
"configurations": {
"net45": { },
"k10" : { }
},
"commands": {
"web": "Microsoft.AspNet.Hosting server.name=Microsoft.AspNet.Server.WebListener server.urls=http://localhost:5001"
}
}

0 comments on commit 35e2228

Please sign in to comment.