Search Results
Your search for Powershell returned 2 results. This is page 1 of 1
-
Tailing Umbraco log files with Windows PowerShell
I've read a few people looking for an alernative to the Umbraco trace to help them to debug when using the new Umbraco MVC rendering engine. The wonderfully named umbDebugShowTrace query string has no effect when using the MVC rendering engine - because the information that it provided isn't available. As discussed in my previous blog post we now have log4net available in Umbraco. In the previous post I shared tips on how to place your own debug messages in their own log4net file - but for the predominantly lazy (I include myself in this group) there is a simple Powershell command to help out: cat UmbracoTraceLog.txt -wait | select-string "string to find" To break this down cat UmbracoTraceLog.txt just -
Incrementing the Umbraco Client Dependency version with Octopus Deploy
If you use Octopus deploy to deploy your Umbraco sites, you've probably forgotten to increment the Client Dependency version before building and deploying - which leads to old CSS and JavaScript being served. Octopus Deploy allows you to run custom powershell scripts during the deployment life cycle - and the one below will set the client dependency version. $Config = ".\config\ClientDependency.config"; If (Test-Path $Config) { $Cd = New-Object System.Xml.XmlDocument $Cd.Load($Config) $Rel = ($OctopusParameters['Octopus.Release.Number']); $Cd.clientDependency.version = $Rel.Replace(".", ""); $Cd.Save($Config) } If (Test-Path "bin\version.txt"){ Remove-Item "bin\version.txt" } "$($OctopusParameters