Auto deploy a website in IIS (created using IIS version 7.5)
- Open IIS, go to Default Web Site
- Right-click Default Web Site, Highlight Deploy and select Import Application.
- Select the package location and click NEXT.
- Select all contents in the package.
- Specify Site Name and hit NEXT
- Wait till package is unpacked and installed.
- Verify Summary and click FINISH
- Verify in IIS a new package is listed under Default Web Site
- Delete this package and verify the folder structure is left.
- Right-Click sites and Add a new Website
- Give it a name and point the physical path to deployed folder under \\inetpub\wwwroot, specify a unique port number
- Verify the new website is listed under sites and a new app pool is created in Application Pools
- Go to the app pool, check advance settings and update the following:
- .Net Framework - should match as specified in web.config
- Enable 32 bit Application - True
- Load User Profile - True
- Rapid Fail Protection (Enabled)- True
- Open web.config and update the following:
- <add key="LogTicketEmailTo" value="ar@gh.com"/>
- <add key="EmailErrorEnabled" value="true"/>
- <add key="EmailErrorFrom" value="ar@gh.com"/>
- <add key="EmailErrorRecipients" value="ar@gh.com"/>
- <add key="EmailErrorCCRecipients" value="ar@gh.com"/>
- <add key="SitePath" value="http://connect:8083"/>
- <add key="GeneralUserRoleName" value="Test"/>
- <add key="ROLE" value="24"/>
- <add key="BypassCertificateError" value="true"/>
- <add key="AgentPath" value="C:\Program Files (x86)\XXXX.exe"/>
- <add key="WebServieUsername" value="XXXXXX"/>
- <add key="WebServicePassword" value="XXXXXX"/>
- <add key="deleteConfigFile" value="true"/> NOTE: The above web config options will be based on your local app configuration. The above are added as an example for reference.
- Open ConnectionStrings.config and update datasource and catalogue.
- Go to \\App_Data\Settings\Sites\Default\ update datasource and catalogue in Settings.txt
- Open the website directory root folder and update Security settings and add the custom AppPool as user with R/W and execute permissions.
- Restart the website
No comments:
Post a Comment