![]() ![]() In both scripts, you will notice appPoolName, this is a Variable which you will need to set up with the name of the application pool named AppPoolName. You will want to enter the Stop PowerShell script in the pre box.Īnd then the Start PowerShell script in the post box. This will then give you the option to enter pre-deployment, deployment and post-deployment scripts. This will then give you the option to Enable Custom PowerShell scripts. To set up the Pre/Post deployment scripts within the deployment of a NuGet package step, select the step and click on Configure features. You can run some Custom PowerShell scripts during Pre/Post deployment. There is a pretty easy solution for this. You could use a PreDeploy.ps1 script to stop any processes that may be locking the file. One or more files in the directory may be locked by another process. Octopus will soon inform you if this is the case when deploying your package to the server, and will give you the error message: ![]() Usually it is because there is a process using files within the Bin folder and you will have to stop the application pool first. Stopping and Starting your Application Pool with Octopus Deployĭepending on your Web Server set up, you might not be able to overwrite the Bin folder without some manually intervention. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |