Utilities used in the automated deployment of Developer enviroments. At 1508 we develop Sitecore CMS and Umbraco solutions, all client solutions are hosted on our QA servers and deployed from there to the local dev machines with the help of these utility scripts. ECHO is off. We hope you can find help and inspiration in these utilities. See the sample for inspiration.
1508 / Design in Love with Technology
Removes any files that are unnessesary for the solutions on a QA environment
CLEAN.QA.SOLUTION [path to qa solution]
Removes/Cleans
- MediaCache, Viewstate under ./Website/App_Data/
- Sitecore ./Data/Serialized ./Data/Dump and log files under ./Data/
- Backups located in root of ./Databases Backup (any backup subfolders are not touched)
- Svn folders
- Code files not located under ./Website/App_Code, ./Website/Sitecore or ./Website/Umbraco
- Empty folders under ./Website/Applicationcode
Finds all project folders on QA solution drive and call CLEAN.QA.SOLUTION utility for each
CLEAN.QA.SOLUTION.PROJECTS [path to qa solution root]
ex. clean.qa.solution.projects.cmd "s:"
For each subfolder/Project removes/Cleans
- MediaCache, Viewstate under ./Website/App_Data/
- Sitecore ./Data/Serialized ./Data/Dump and log files under ./Data/
- Backups located in root of ./Databases Backup (any backup subfolders are not touched)
- Svn folders
- Code files not located under ./Website/App_Code, ./Website/Sitecore or ./Website/Umbraco
- Empty folders under ./Website/Applicationcode
Set ACL change access to the Network Service on the specified path
FILE.permission.cmd [path]
Displays help.htm
Generates help.htm
Setup XP IIS 5.1 default root to Website and run aspnetregiis
IIS5.CREATE webroot aspnetframework_regiis_path
webroot Specifies the site path aspnetframework_regiis_path Specifies the path to the framework regiis file
Step 1: Validate System Step 2: Override Website Root Step 3: Register Asp.Net with "aspnet_regiis -s w3svc" on all Sites, this overrides any custom asp.net site settings
Creates IIS6 Website and App Pool
IIS6.CREATE webroot hostheader webname appname aspnetframework_regiis_path
webroot Specifies the site path hostheader Specifies the hostheader names (will always bind to :80) Can be set empty and can set multiple by separating with comma (Will create a website with each hostheader) webname Specifies the site name appname Specifies the name of the application pool to bind to aspnetframework_regiis_path Specifies the path to the framework regiis file
Step 1: Validate System Step 2: Create Backup of IIS (can be restored in IIS Backup/Restore) Step 3: Stop default website and sharepoint admin website (W3SVC/1 and /2) Default webs are unsuitable for development and hosting. Step 4: Create ApplicationPool Step 5: Create Website () Step 6: Register Asp.Net with "aspnet_regiis -s w3svc" on all Sites, this overrides any custom asp.net site settings
Creates IIS7 Website and App Pool
IIS7.CREATE webroot hostheader webname appname aspnetframework_regiis_path managedPipelineMode bin
webroot Specifies the site path hostheader Specifies the hostheader names (will always bind to :80) Can be set empty and can set multiple by separating with comma webname Specifies the site name appname Specifies the name of the application pool to bind to aspnetframework_regiis_path Specifies the path to the framework regiis file managedPipelineMode Classic or Integrated (default is Classic) bin Specifies the folder for the global script utilities
Step 1: Validate System
Step 2: Create Configuration Backup
Step 3: If hostheader not provided Stops all other websites (W3SVC/x)
Step 4: Create ApplicationPool
Step 5: Create Website ()
Step 6: Set Framework version on Application Pool Site
Creates IIS8 Website and App Pool
IIS8.CREATE webroot hostheader webname appname aspnetframework_regiis_path managedPipelineMode bin
webroot Specifies the site path hostheader Specifies the hostheader names (will always bind to :80) Can be set empty and can set multiple by separating with comma webname Specifies the site name appname Specifies the name of the application pool to bind to aspnetframework_regiis_path Specifies the path to the framework regiis file managedPipelineMode Classic or Integrated (default is Classic) bin Specifies the folder for the global script utilities
Step 1: Validate System
Step 2: Create Configuration Backup
Step 3: If hostheader not provided Stops all other websites (W3SVC/x)
Step 4: Create ApplicationPool
Step 5: Create Website ()
Step 6: Set Framework version on Application Pool Site
Choose system and redirect parameters to valid IIS system.
IISx.create WEBROOT HOSTHEADER WEBNAME APPNAME ASPNETFRAMEWORK_REGIIS_PATH (managedPipelineMode)
HOSTHEADER Can be comma separated but only IIS7 and IIS8 will interpret this. IIS6 will create separate websites for each hostheader managedPipelineMode Used by IIS7 and IIS8, default is classic but "Integrated" can be set for the website app pool.
Example: .\IISx.create.bat" "D:\SDU776.0507\WebSite" "sdu.local,sdunet.local" "SDU776 SDU Intranet" "SDU776 AppPool" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe"
Creates a virtual directories
IISX.VDIR "" "" "" IISX.VDIR webname vdirname vdirroot
webname Specifies the website name vdirname Specifies the name of the virtual directory vdirroot Specifies the path of the virtual directory
Enable Sql LoginMode and restarts MSSQLSERVER
MSSQL2008.init.cmd [login] [password]
Set recovery mode simple on all database on specified server (except system database)
MSSQL2008.Master.RecoveryModes.cmd [server] [login] [password]
Shrink all databases on specified server (except system database)
MSSQL2008.Master.ShrinkDatabases.cmd [server] [login] [password]
Arrange source code based on a visual studio project file
Set as pre-build event: \QA\utilities\Deployment\NArrange.Source.cmd "$(SolutionPath)"
Removes temporary ASP.NET files
Attach *.mdf and *.ldf files from disk
SQL.attach.bat [server] [user] [password] [path] [ExpectedCount]
Backup running databases with to disk
SQL.backup.bat [server] [user] [password] [pattern] [path]
Restore databases from disk
SQL.restore.bat [server] [user] [password] [path from] [path to] [ExpectedCount] ([Custom date format or *])
Provides a command line method of launching applications that prompt for elevation (Run as Administrator) on Windows Vista.
sudo [command]
Check out SVN archive
SVN.checkout.cmd [svn path] [path]
Export SVN archive
SVN.export.cmd [svn path] [path]
Update SVN folder
SVN.update.cmd [path]
Build solution and start developer environment
VS2005.build.cmd [solution filepath]
Build solution and start developer environment
VS2008.build.cmd [solution filepath]
Build solution and start developer environment
VS2010.build.cmd [solution filepath]
Build solution and start developer environment
VS2012.build.cmd [solution filepath]
Wait the amount of seconds before continuing
WAIT [seconds]
This Readme.md is generated with the HELP.update.cmd Script. We hope you can find help and inspiration in these utilities.
The 1508 Development Team