MegaPowerRockstar Posted November 12, 2015 Report Posted November 12, 2015 Hi Friends, I need small help... I am trying to deploy the web services using publish option. I am able to successfully deploy the code and all. My question is i need to stop the app pool before i publish and after publish i need to start it back. I should implement using the publish option from the web services project. Any thoughts....or advise...
andhravodu Posted November 12, 2015 Report Posted November 12, 2015 Hi Friends, I need small help... I am trying to deploy the web services using publish option. I am able to successfully deploy the code and all. My question is i need to stop the app pool before i publish and after publish i need to start it back. I should implement using the publish option from the web services project. Any thoughts....or advise... Jenkins pani chestundi kada deeniki? Ex. Start stop ni oka separate service call petti, jenkins to integrate cheyochu ga
Spartan Posted November 12, 2015 Report Posted November 12, 2015 Webservice dentlo.... IIS aa... use msdeploy to do auto deployment....it will take care of stop and start the app pool..
Spartan Posted November 12, 2015 Report Posted November 12, 2015 MSDeploy -verb:sync -source:contentPath="[absolute_path]App_offline-Template.htm" -dest:contentPath="name_of_site/App_offline.htm",computerName="copmuter_name", username=user_with_administrative priviliges,password=passwort After deployment you can remove the App_offline.htm file using the following call: MSDeploy -verb:delete -dest:contentPath="name_of_site/App_offline.htm",computerName="computer_name", username=user_with_administrative_priviliges,password=passwort
Spartan Posted November 12, 2015 Report Posted November 12, 2015 This article describes using an htm file named App_offline.htm to take a site offline. Once the IIS detectes this file in the root of a web application directory, ASP.NET 2.0 will shut-down the application, unload the application domain from the server, and stop processing any new incoming requests for that application. In App_offline-htm, you can put a user-friendly message indicating that the site is currently under maintainance. Jason Lee shows the MSDeploy calls you need to use (plus much more about integrating these steps in your build scripts!). MSDeploy -verb:sync -source:contentPath="[absolute_path]App_offline-Template.htm" -dest:contentPath="name_of_site/App_offline.htm",computerName="copmuter_name", username=user_with_administrative priviliges,password=passwort After deployment you can remove the App_offline.htm file using the following call: MSDeploy -verb:delete -dest:contentPath="name_of_site/App_offline.htm",computerName="computer_name", username=user_with_administrative_priviliges,password=passwort
MegaPowerRockstar Posted November 12, 2015 Author Report Posted November 12, 2015 Webservice dentlo.... IIS aa... use msdeploy to do auto deployment....it will take care of stop and start the app pool.. yes ... here it is IIS.
Spartan Posted November 12, 2015 Report Posted November 12, 2015 Jenkins pani chestundi kada deeniki? Ex. Start stop ni oka separate service call petti, jenkins to integrate cheyochu ga single script to ayepoye daniki stop start call waste kada uncle..
MegaPowerRockstar Posted November 12, 2015 Author Report Posted November 12, 2015 This article describes using an htm file named App_offline.htm to take a site offline. Once the IIS detectes this file in the root of a web application directory, ASP.NET 2.0 will shut-down the application, unload the application domain from the server, and stop processing any new incoming requests for that application. In App_offline-htm, you can put a user-friendly message indicating that the site is currently under maintainance. Jason Lee shows the MSDeploy calls you need to use (plus much more about integrating these steps in your build scripts!). MSDeploy -verb:sync -source:contentPath="[absolute_path]App_offline-Template.htm" -dest:contentPath="name_of_site/App_offline.htm",computerName="copmuter_name", username=user_with_administrative priviliges,password=passwort After deployment you can remove the App_offline.htm file using the following call: MSDeploy -verb:delete -dest:contentPath="name_of_site/App_offline.htm",computerName="computer_name", username=user_with_administrative_priviliges,password=passwort MS Deploy is a different process right.... I want to use Publish option to do this....
Spartan Posted November 12, 2015 Report Posted November 12, 2015 MS Deploy is a different process right.... I want to use Publish option to do this.... msdeploy to kuda u can publish your site... im doing it as part of my CD process through Jenkins..
Spartan Posted November 12, 2015 Report Posted November 12, 2015 basic ga behind the scenes when u are doing Publish....msdeploy run avutadi..u can see that in the output window... MSDeploy.exe -source:package="mypackage.zip" -dest:auto,ComputerName=MyServer,IncludeAcls=False -verb:sync -disableLink:AppPoolExtension -disableLink:ContentExtension -disableLink:CertificateExtension -allowUntrusted -preSync:runCommand="C:\Windows\System32\inetsrv\appcmd stop apppool <AppPoolName>" -postSync:runCommand="C:\Windows\System32\inetsrv\appcmd start apppool <AppPoolName>"
MegaPowerRockstar Posted November 12, 2015 Author Report Posted November 12, 2015 basic ga behind the scenes when u are doing Publish....msdeploy run avutadi..u can see that in the output window... MSDeploy.exe -source:package="mypackage.zip" -dest:auto,ComputerName=MyServer,IncludeAcls=False -verb:sync -disableLink:AppPoolExtension -disableLink:ContentExtension -disableLink:CertificateExtension -allowUntrusted -preSync:runCommand="C:\Windows\System32\inetsrv\appcmd stop apppool <AppPoolName>" -postSync:runCommand="C:\Windows\System32\inetsrv\appcmd start apppool <AppPoolName>" where do we save the above script ?? in the publish profile xml or ??? can u help or guide me in implementing this step by step...pls
Spartan Posted November 12, 2015 Report Posted November 12, 2015 where do we save the above script ?? in the publish profile xml or ??? can u help or guide me in implementing this step by step...pls ne publish profile lo idi include chesi chudu.. <AppPoolController ApplicationPoolName="MyAppPool" Action="Restart" />
Spartan Posted November 12, 2015 Report Posted November 12, 2015 step by step guide kavalante..try this...if you are new to deployment.. single project aite..Publish method is good...but if it is in office enviroment..prati sari u cannot do manual deployment..better go for WebDeploy if using TFS as source control or Jenkins (msdeploy) if other sources... https://msdn.microsoft.com/library/dd465337%28v=vs.100%29.aspx
MegaPowerRockstar Posted November 12, 2015 Author Report Posted November 12, 2015 ne publish profile lo idi include chesi chudu.. <AppPoolController ApplicationPoolName="MyAppPool" Action="Restart" /> I will give it a try... but it wont help my criteria... i need to stop the app pool before i deploy because... i have some files that i need to delete and after dropping the new files we need to start the app pool.
MegaPowerRockstar Posted November 12, 2015 Author Report Posted November 12, 2015 step by step guide kavalante..try this...if you are new to deployment.. single project aite..Publish method is good...but if it is in office enviroment..prati sari u cannot do manual deployment..better go for WebDeploy if using TFS as source control or Jenkins (msdeploy) if other sources... https://msdn.microsoft.com/library/dd465337%28v=vs.100%29.aspx I am aware of this ... in this they havent mentioned about app pool restart ... but thanks for the info....
Recommended Posts