asp.net mvc - Dynamic Page Content on Precompiled Azure Web App -
i launch azure web app (aka azure web sites) , have quick question.
i've noticed there pretty significant lag on using site when publish site visual studio. each page(/controller?) appeared compiling when first accessed made site feel slow @ least few minutes. want avoid used "precompile" option when build , publish vs. seems work and, although there still initial lag after publishing, it's better was.
my question this: because new site , adding functionality , fixing bugs, have section on main _layout page can edit notification (ie. "site go down in 15 minutes maintenance."). problem don't want go through whole build/publish process content site. there way can include file / content (page_alert.html) in _layout.cshtml page can edited in azure app service editor? because of precompiled nature of site, .cshtml files "this marker file generated precompilation tool, , should not deleted!" in app service editor.
thanks!
when choose precompile option, can check 'allow precompiled site updatable'. allow update individual .cshtml files compiled on fly, while rest still precompiled.
see doc details.
Comments
Post a Comment