部署 Orchard - 超过 700MG

发布于 2024-12-18 20:19:20 字数 391 浏览 2 评论 0原文

我到处关注与部署 Orchard 相关的不同线程,但由于某种原因,它们都继续生成 700MG 站点

我已最多添加了 10 个页面到现有网站,因此出现了问题。

我看到所有模块都被复制,并且每个模块的每个 BIN 文件夹上都有一组重复的 .dll。

我已经从 Microsoft Web Platform Installer 安装了 Orchard。
我使用的是 VS 2010 Ultimate
我正在使用 SQL Compact(用于此站点)

任何想法都会非常感激,因为出于某种原因我不想相信 MS 在部署一个简单的站点时造成如此混乱,为每个模块重复很多次相同的 DLL。

I have followed different threads here and there related to deploying Orchard but for some reason, they all keep producing a 700MG site.

I have added maybe 10 pages max to the existing site, so something is wrong.

I see that all modules are copied, and each of them has a repeated set of .dll on each of their BIN folders.

I have installed Orchard from the Microsoft Web Platform Installer.
I am using VS 2010 Ultimate
I am using SQL Compact (for this site)

Any thought will be much appreciated, cause for some reason I do NOT want to believe MS is producing such a mess on deploying a simple site, repeating sooo many times the same DLLs for each module.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

宛菡 2024-12-25 20:19:20

是的,如果你对所有内容都做了一个哑副本,那么每个模块都会在其 bin 文件夹中拥有所有 dll 的副本,这些 dll 只会坐在那里什么都不做。您需要进行真正的 Web 部署,这应该做正确的事情并且仅部署您需要的内容,或者当您需要使用构建“compile;package”进行部署时从命令行进行构建。

此处解释: http://docs.orchardproject.net/文档/从源代码中构建和部署 Orchard

Yeah, if you do a dumb copy of everything, each and every module has a copy of all the dlls in its bin folder, which are just going to sit there doing nothing. You need to either do a real web deploy, which should do the right thing and only deploy what you need, or build from the command-line when you need to deploy using build "compile;package".

It's explained here: http://docs.orchardproject.net/Documentation/Building-and-deploying-Orchard-from-a-source-code-drop

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文