Jump to content

Help In Auto Deployment In Web Services


Recommended Posts

Posted

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... 

Posted

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
Posted

Webservice dentlo.... IIS aa...

 

use msdeploy to do auto deployment....it will take care of stop and start the app pool..

 

 

Posted
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

Posted

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

 

Posted

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.

Posted

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..

Posted

 

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....

Posted

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..

Posted

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>"
Posted

 

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

Posted

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" />
Posted

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

Posted

 

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.

Posted

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....

×
×
  • Create New...