为什么资源不会出现在生产服务器中?

时间:2014-09-22 12:44:45

标签: javascript angularjs iis umbraco umbraco7

我正在使用umbraco cms和AngularJS框架开发应用程序。 为什么我的网络应用程序不像本地工作?...我保留了相同的权限和配置结构。

生产服务器conf:win 7 sp1,iis 7.5 开发服务器conf:win 8.1 update 1,iis 8.5

看图:

Difference between app running in a production server (right) and in a dev server

1 个答案:

答案 0 :(得分:1)

当编译模式未设置为debug时,Umbraco使用Client Dependency。它们不同的原因很可能是因为您有不同的调试和发布配置。

如果要避免客户端依赖,请打开Web.config并设置:

<compilation debug="true" ... >

这不建议在生产环境中使用

相关问题