I’m trying to use the Deployweb script from BuildDeploySupport (https://github.com/jonnii/BuildDeploySupport)
I have this at the top of PreDeploy.ps1:
. .\DeployWeb.ps1
InstallAppPool ‘…’ ‘v4.0’ {
SetCredentials ‘…’ ‘…’
}
But it doesnt seem to be including the Deployweb functions into powershell. I get:
2013-08-08 14:21:05 INFO ERROR: The term ‘InstallAppPool’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included,…
I’m on octopus version 1.2.0.1445
Is there a trick to getting that to include those functions? I have verified that script is in the same folder as PreDeploy on the extracted path on the target machine.
Any ideas?