Tuesday, 8 September 2020

Avoid IISRESET command, restart only relevant APP with SINGLE command

Hope you all doing great, 

I believe we all are using IISRESET after local/staging environment publish activity which earlier mentioned that to avoid IISRESET but I was also not following.



Major concern not to use IISRESET because it restart all the hosted applications on IIS, which should not happen.

Think about a scenario where 5 teams are using same development environment for different application.


To know more in deep - why to Avoid IISRESET?


In this article come up with the solution with single line command to avoid IISRESET. Hope this will save time to everyone.

First i will suggest to make below path globally accessible and this is one time activity

right click on This PC and select properties

From the left side click on Advanced System Settings

Click on Environment Variables and then from System variables section select Path as below 

then click on New and add below path

C:\Windows\System32\inetsrv 


now press OK OK OK


Now let's run one line command as mentioned steps, Please follow


  • press win + R
  • now paste below command (replace YourSitecoreName with your application name)

"C:\Windows\System32\cmd.exe" /c appcmd.exe  stop site /site.name:"YourSiteName" && appcmd.exe  start site /site.name:"YourSiteName"


  • Now press CTRL+SHIFT+ENTER (used to run command as admin)

once it works successfully, in future just run command as above steps only with single line command.


Hope this will and help and save time.
Please comment, if find any better approach.

Monday, 7 September 2020

Start with Docker

To be honest, few days back Docker was alien term to me until Sitecore 10 release.

I was so curious to explore at least to understand motive to use Docker, but used to give justification to myself that Leave it, it's part of Devops.

After getting some idea on Docker understood that why everyone talking about Docker, why so popular.



In this article will be covering:

What problem Docker actually solve?
Why Docker playing lead roll?
What I understood as a developer?


Problem which Docker solve

Scenario 1: As a sitecore developer, whenever used to setup machine for development or installing any software almost every time used to get issue, if lucky then take less time to resolve and then again get installation issue for other steps or for other software and this going on.


Scenario 2: Let's assume we have three python applications, which planning to host on single server, since all application's python version are different as well as dependencies. Then we can not install different python version on same server.

We can achieve this by Docker host, but with same hosted OS mean if 2 application need to be hosted on Linux and last one on window then in this case will be requiring 2 docker host - 1 for Linux and another for windows.



Docker to me - pack all minimal required dependencies as image and then use as ready to use container.

For any application, all minimal required dependencies can be packed as image file and manage as version control - ready to use for anyone anytime anywhere.

An open source, platform independent that help to create container (consist of memory, ram, s/w, application code) which can take time at once but from next time will be ready to deploy at any platform.


Steps to use docker:

Basically first use to create image by packing everything or can download images from Docker Hub.
And then with the help of image create container where required to run application.

(in one line - Create an exe of application and then run on any windows application)

Docker Flow

setup/install docker depends on your operating system (Let's say Windows)
once install open docker command prompt and run
docker version

will see docker version information in two part

Docker client - which will show version details of machine where docker installed (host machine).
Docker server - this will show all the version details of Linux kernel details.


Hope this help to get basic understanding that Why Docker?