-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCreateScrillaWebsite.bat
24 lines (19 loc) · 1.05 KB
/
CreateScrillaWebsite.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
REM Set the following user name and password
set appName=scrilla.js.Web
set appPoolName=scrilla.js.Web
set appDirectory=D:\projects\scrilla.js\scrilla.js.Web
set appUrl=http://scrilla.js:80
REM make sure to add an entry for scrilla to the HOSTS file
REM create directory
mkdir %appDirectory%
REM Clean up any old websites and apppools
%systemroot%\system32\inetsrv\appcmd delete site /site.name:"%appName%"
%systemroot%\system32\inetsrv\appcmd delete apppool /apppool.name:%appPoolName%
REM Create new apppool
%systemroot%\system32\inetsrv\appcmd add apppool /apppool.name:%appPoolName% /managedRuntimeVersion:v4.0 /managedPipelineMode:Integrated /enable32BitAppOnWin64:false
REM Create website with apppool
%systemroot%\system32\inetsrv\appcmd add site /site.name:%appName% /physicalPath:%appDirectory% /bindings:%appUrl%
%systemroot%\system32\inetsrv\appcmd set site /site.name:%appName% /[path='/'].applicationPool:%appPoolName%
iisreset
REM set directory permissions and clear readonly flag
REM icacls %appDirectory% /T /grant "IIS AppPool\%appPoolName%":(OI)(CI)F