惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

aimingoo的专栏
aimingoo的专栏
博客园 - 三生石上(FineUI控件)
GbyAI
GbyAI
大猫的无限游戏
大猫的无限游戏
M
MIT News - Artificial intelligence
Microsoft Azure Blog
Microsoft Azure Blog
月光博客
月光博客
Engineering at Meta
Engineering at Meta
I
InfoQ
T
Tailwind CSS Blog
N
Netflix TechBlog - Medium
S
SegmentFault 最新的问题
H
Help Net Security
博客园 - 【当耐特】
WordPress大学
WordPress大学
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
美团技术团队
博客园 - 叶小钗
T
The Blog of Author Tim Ferriss
腾讯CDC
雷峰网
雷峰网
Martin Fowler
Martin Fowler
The GitHub Blog
The GitHub Blog
D
Docker

博客园 - boy119

ISAPI_Rewrite二级域名的问题 制作dnn皮肤的扩展插件 中国DNN团队博客群开通,欢迎大家加入 NETMECHANIC.COM测试网页特性 让IIS服务器支持中文文件名 asp.net中文环境的安装方法 这个post收集可以借鉴的网站界面 从dvbbs转移到cnforums的经验 还有4个wallop邀请,需要的朋友请报名! Dnn3的新闻文章模块和一些看法 access转换为sqlserver的注意事项 cnforums1.2中“在过去的 24 小时内最活跃的 10 位会员”和“论坛统计信息”空白的解决方法 DNN文章模块使用datagrid分页心得 翻译网站 解决dnn3.06 UserOnLine/Survey不能正常运行的bug dnn3模块——FlashPlayer测试版 DotNetNuke Version 3.0.5 ( Public Beta 2 )发布 不错的城市 dnn 3.0.4中discussion的bug
DNN的空间占用问题
boy119 · 2005-02-11 · via 博客园 - boy119

在dnn的论坛看到一篇帖子,比较实用,留在这里。

http://www.asp.net/Forums/ShowPost.aspx?tabindex=1&PostID=671187

DNN 3.x.x Deploy.bat:

XCOPY "[dnn source root]" [destination path] /D /E /R /K /H /I /Y /W /EXCLUDE:Exclude.txt

Example:

XCOPY "E:\DNN\DotNetNuke" E:\DNN\Deploy /D /E /R /K /H /I /Y /W /EXCLUDE:Exclude.txt

This copies from my DotNetNuke source root folder to a deploy folder, excluding folders and files defined in the Exclude.txt file below.

I have a folder, "E:\DNN\Build" that has only the Deply.bat file and the Exclude.txt file in it. I go there, click on Deploy.bat, click any key to continue, and viola, I have a folder containing all my files I need to deploy to my host for any site.

All I have to do is add the appropriate web.config file in the root and I am all set.

DNN 3.x.x Exclude.txt:

\Documentation\
\BuildSupport\
\Components\
\HttpModules\

\controls\CountryListBox\
\controls\DataAccessBlock\
\controls\DotNetNuke.WebControls\
\controls\DotNetNuke.WebUtility\
\controls\MemberRole\
\controls\SharpZipLib\
\controls\SolpartMenu\bin\

\Portals\0\portal.css

.sln
.suo
.webinfo
.vb
.build
.bat
.pdb
.doc
web.config

There is a start for the bat file's exclude.txt file for DNN 3.x.x.

There is much, much more that can be added, this is a start for 3.x.x

The \Portals\0\portal.css file is excluded because if it exists already, DNN throws an error (unhandled) that it already exists when you run the newly deployed portal.

Deployment size from the above excludes = 22.8mb, size on disk = 25.7mb.

I am sure if I had a little more time this morning, I could easily figure out all of the required excludes, a Core Team member is not required (although it would speed things up).