diff --git a/WebsitePanel/Tools/SetupTestWebsites.ps1 b/WebsitePanel/Tools/SetupTestWebsites.ps1 new file mode 100644 index 00000000..436a910e --- /dev/null +++ b/WebsitePanel/Tools/SetupTestWebsites.ps1 @@ -0,0 +1,12 @@ +Import-Module WebAdministration + +cd .. +$path = pwd +cd Tools + +New-Website -Name "WebsitePanel Server" -Port 9003 -PhysicalPath "$path\Sources\WebsitePanel.Server" -ErrorAction SilentlyContinue +New-Website -Name "WebsitePanel Enterprise Server" -Port 9002 -PhysicalPath "$path\Sources\WebsitePanel.EnterpriseServer" -ErrorAction SilentlyContinue +New-Website -Name "WebsitePanel Portal" -Port 9001 -PhysicalPath "$path\Sources\WebsitePanel.WebPortal" -ErrorAction SilentlyContinue + + + \ No newline at end of file diff --git a/WebsitePanel/Tools/StartWebsite.ps1 b/WebsitePanel/Tools/StartWebsite.ps1 new file mode 100644 index 00000000..e2d3fe36 --- /dev/null +++ b/WebsitePanel/Tools/StartWebsite.ps1 @@ -0,0 +1,33 @@ +Write-Host -ForegroundColor Green " +Ensure that you have created the EnterpriseServer Database +by executing test-createDB.bat and compiled WebsitePanel by +executing build-test.bat . + +Configuration: + +WebsitePanel Portal: + +URL: http://localhost:9001 +Login: serveradmin +Password: 1234 + + +WebsitePanel Enterprise Server: +URL: http://localhost:9002 +Database Login: WebsitePanel +Database Password: Password12 + + +WebsitePanel Server: +URL: http://localhost:9003 +Password: Password12 +" + +start http://localhost:9001 + +Read-Host "Press a key" + + + + + \ No newline at end of file diff --git a/WebsitePanel/Tools/build-test.bat b/WebsitePanel/Tools/build-test.bat new file mode 100644 index 00000000..d021ab25 --- /dev/null +++ b/WebsitePanel/Tools/build-test.bat @@ -0,0 +1,2 @@ +%windir%\Microsoft.NET\Framework\v4.0.30319\msbuild.exe ..\test.xml /target:BuildTest /property:BuildConfiguration=Debug /v:n /fileLogger /m +Pause \ No newline at end of file diff --git a/WebsitePanel/Tools/start-test.bat b/WebsitePanel/Tools/start-test.bat new file mode 100644 index 00000000..e4e49f46 --- /dev/null +++ b/WebsitePanel/Tools/start-test.bat @@ -0,0 +1,3 @@ +@echo off +powershell . ".\StartWebsite.ps1" +Pause \ No newline at end of file diff --git a/WebsitePanel/Tools/test-createDB.bat b/WebsitePanel/Tools/test-createDB.bat new file mode 100644 index 00000000..4aabe6ee --- /dev/null +++ b/WebsitePanel/Tools/test-createDB.bat @@ -0,0 +1 @@ +%windir%\Microsoft.NET\Framework\v4.0.30319\msbuild.exe ..\test.xml /target:CreateTestDB /property:BuildConfiguration=Debug /v:n /fileLogger /m \ No newline at end of file diff --git a/WebsitePanel/Tools/test-updateDB.bat b/WebsitePanel/Tools/test-updateDB.bat new file mode 100644 index 00000000..06385220 --- /dev/null +++ b/WebsitePanel/Tools/test-updateDB.bat @@ -0,0 +1 @@ +%windir%\Microsoft.NET\Framework\v4.0.30319\msbuild.exe ..\test.xml /target:UpdateTestDB /property:BuildConfiguration=Debug /v:n /fileLogger /m \ No newline at end of file diff --git a/WebsitePanel/test.xml b/WebsitePanel/test.xml new file mode 100644 index 00000000..842d7e31 --- /dev/null +++ b/WebsitePanel/test.xml @@ -0,0 +1,79 @@ + + + + + + WebsitePanel + $(BuildFolder)\Database + WebsitePanel + Password12 + 1234 + HcWzSyyxfo0751w/TwWUjQ== + Password12 + 1234567890 + http://127.0.0.1:9002 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +