asp.net mvc 4 - Steps Involved in Publishing Site to Production Environment -
i got question triggered in interview. neccessary steps involved publish asp.net mvc4 application production environment?
i told this
- changed release mode , publish site.
- look connection variables in web.config
- look application settings
- then create application in iis
- create application cycle it
- then map source path application in iis
but expecting lot. ideas?
ideally before deploying production, site/application has been tested in test environment (ideally prod-like environment), should case of promoting deployment package prod-like prod , applying relevant config transforms/token substitutions things connection strings, service endpoints , credentials.
more holistically, of things for:
- have binaries been compiled optimisations turned on, , pdb set either 'none' or 'pdbonly' (i.e. not 'full')
- are referenced assemblies , full transitive tree going resolvable in target server - i.e. not in 'bin' directory of deployment package must resolvable through gac or dropped in separately 'bin' directory
- the web.config should set appropriate values production environment, includes things such as:
- correct prod connection strings
debug
set 'false'- correct prod wcf endpoints , configuration (bindings, certs, etc)
- any non-prod/dubug handlers , modules removed
- ssl certs correctly set if https being used
- application created in iis, appropriate app pool (integrated pipeline, asp.net version 4) associated (ideally app pool specific app, i.e. not shared other apps/sites)
- ensure asp.net 4 has been correctly registered iis on target server
- ensure prod config has
runallmanagedmodulesforallrequests
set 'true' - ensure 'http redirection' installed on target server
- anything else depending on errors come up
but really, of stuff should getting flushed out in pre-prod environment mimics prod set up, missing being applied both environments (prod , pre-prod) , further testing carried out on pre-prod environment, before rolling out prod.
Comments
Post a Comment