Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,298,303
Community Members
 
Community Events
165
Community Groups

Stop IIS Website before scp-copy to target

HI all!

I am searching for an option to stop an IIS website before deployment to it. 

I tried using ssh and appcmd (which outside of bitbucket works fine), but I cannot get ssh to cooperate with my wishes. 

Anyone done something similar already?

Thanks

  Andreas

1 answer

0 votes

Hi @Andreas Kroll 

I am also working on the same requirement. Did you find the solution for this? Please suggest.

Thanks in advance.

I have created my own deployment via scripts. 

Our project consists of 3 different projects each having it's own needs, so I just put a script on top that lets me command what to deploy where and which feature or release branch to use. 

 

As for the IIS issue: I found that as soon as there is a background job involved, it's not only necessary to stop the site, but you have to additionally stop the app pool process as well. 

As long as I do that, everything works fine. 

Deployment is done via ssh commands: 


ssh %USER%@%SERVER% c:\windows\system32\inetsrv\appcmd.exe stop apppool %MEAPPPOOL%
ssh %USER%@%SERVER% c:\windows\system32\inetsrv\appcmd.exe stop site %MESITE%

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,227 views 2 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you