# MOT Updates deployment [TOC] ## Staging ### Web Server - Stop the `Default Web Site` in IIS - Copy`C:\inetpub\wwwroot\IDEASWAY\Site` on a backup directory. - Copy the `Site` from the deployment package and replace `C:\inetpub\wwwroot\IDEASWAY\Site`. - Don't remove the old directory and copy, just copy-past-replace - Some files on `C:\inetpub\wwwroot\IDEASWAY\Site` are not included on `Site` from package - Start the `Default Web Site` in IIS ### App Server - Stop the `Default Web Site` in IIS - Copy`C:\inetpub\wwwroot\IDEASWAY\API` on a backup directory. - Copy the `API` from the deployment package and replace `C:\inetpub\wwwroot\IDEASWAY\API`. - Don't remove the old directory and copy, just copy-past-replace - Some files on `C:\inetpub\wwwroot\IDEASWAY\API` are not included on `API` from package - If you have issue replacing directory such as `bootstrap` or `License` just skip it, It won't cause any issue (this related to STG Only not Prod). - Start the `Default Web Site` in IIS ### Database - Ask Ahmed Hefeny to run the scripts from `SQL` directory on the STG Database. ## Production ### Web Server (1 , 2) - Stop the `Default Web Site` in IIS - Copy`C:\inetpub\wwwroot\IDEASWAY\Site` on a backup directory. - Copy the `Site` from the deployment package and replace `C:\inetpub\wwwroot\IDEASWAY\Site`. - Don't remove the old directory and copy, just copy-past-replace - Some files on `C:\inetpub\wwwroot\IDEASWAY\Site` are not included on `Site` from package - Start the `Default Web Site` in IIS ### App Server (1 , 2) - Stop the `Default Web Site` in IIS. - Copy`C:\inetpub\wwwroot\IDEASWAY\API` on a backup directory. - Copy the `API` from the deployment package and replace `C:\inetpub\wwwroot\IDEASWAY\API`. - Don't remove the old directory and copy, just copy-past-replace - Some files on `C:\inetpub\wwwroot\IDEASWAY\API` are not included on `API` from package - Start the `Default Web Site` in IIS ### Database - Ask Ahmed Hefeny `SQL` directory to Database team to run it on production DB.