lxweb/docs/chapter08/Packaging.html

1300 lines
32 KiB
HTML
Raw Normal View History

2025-04-22 17:15:27 +08:00
<!DOCTYPE HTML>
<html lang="zh-hans" >
<head>
<meta charset="UTF-8">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>应用打包 · 梦想家内容管理系统Dreamer CMS</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="description" content="">
<meta name="generator" content="GitBook 3.2.3">
<meta name="author" content="王俊南">
<link rel="stylesheet" href="../gitbook/style.css">
<link rel="stylesheet" href="../gitbook/gitbook-plugin-anchors/plugin.css">
<link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
<link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
<link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
<meta name="HandheldFriendly" content="true"/>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
<link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">
<link rel="next" href="Online.html" />
<link rel="prev" href="Environment.html" />
<meta name="google-adsense-account" content="ca-pub-7787441319194104">
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-7787441319194104"
crossorigin="anonymous"></script>
<link rel="shortcut icon" href="./source/images/favicon.ico" type="image/x-icon">
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="./source/images/favicon.png">
</head>
<body>
<div class="book">
<div class="book-summary">
<div id="book-search-input" role="search">
<input type="text" placeholder="输入并搜索" />
</div>
<nav role="navigation">
<ul class="summary">
<li>
<a href="http://www.iteachyou.cc" target="_blank" class="custom-link">I Teach You我教你</a>
</li>
<li>
<a href="https://gitee.com/iteachyou/dreamer_cms" target="_blank" class="custom-link">Dreamer CMSGitee</a>
</li>
<li>
<a href="https://github.com/iteachyou-wjn/dreamer_cms" target="_blank" class="custom-link">Dreamer CMSGithub</a>
</li>
<li class="divider"></li>
<li class="chapter " data-level="1.1" data-path="../">
<a href="../">
封面
</a>
</li>
<li class="chapter " data-level="1.2" data-path="../COPYRIGHT.html">
<a href="../COPYRIGHT.html">
版权
</a>
</li>
<li class="divider"></li>
<li class="chapter " data-level="2.1" >
<span>
前言
</span>
<ul class="articles">
<li class="chapter " data-level="2.1.1" data-path="../preface/">
<a href="../preface/">
简介
</a>
</li>
<li class="chapter " data-level="2.1.2" data-path="../preface/Topic.html">
<a href="../preface/Topic.html">
主题
</a>
</li>
<li class="chapter " data-level="2.1.3" data-path="../preface/Publish.html">
<a href="../preface/Publish.html">
发行方法
</a>
</li>
<li class="chapter " data-level="2.1.4" data-path="../preface/Online.html">
<a href="../preface/Online.html">
在线手册
</a>
</li>
<li class="chapter " data-level="2.1.5" data-path="../preface/Last.html">
<a href="../preface/Last.html">
最后
</a>
</li>
</ul>
</li>
<li class="divider"></li>
<li class="chapter " data-level="3.1" data-path="../chapter01/">
<a href="../chapter01/">
第一章 模板设计师要求
</a>
<ul class="articles">
<li class="chapter " data-level="3.1.1" data-path="../chapter01/Designer.html">
<a href="../chapter01/Designer.html">
设计师
</a>
</li>
<li class="chapter " data-level="3.1.2" data-path="../chapter01/Developer.html">
<a href="../chapter01/Developer.html">
开发者
</a>
</li>
</ul>
</li>
<li class="divider"></li>
<li class="chapter " data-level="4.1" data-path="../chapter02/">
<a href="../chapter02/">
第二章 模板制作流程
</a>
</li>
<li class="divider"></li>
<li class="chapter " data-level="5.1" >
<span>
第三章 模板文件及目录结构
</span>
<ul class="articles">
<li class="chapter " data-level="5.1.1" data-path="../chapter03/">
<a href="../chapter03/">
模版目录
</a>
</li>
<li class="chapter " data-level="5.1.2" data-path="../chapter03/Description.html">
<a href="../chapter03/Description.html">
模板文件与功能说明
</a>
</li>
<li class="chapter " data-level="5.1.3" data-path="../chapter03/DesignAndUse.html">
<a href="../chapter03/DesignAndUse.html">
概念,设计和使用模板
</a>
</li>
<li class="chapter " data-level="5.1.4" data-path="../chapter03/NamingRules.html">
<a href="../chapter03/NamingRules.html">
命名规则
</a>
</li>
<li class="chapter " data-level="5.1.5" data-path="../chapter03/Other.html">
<a href="../chapter03/Other.html">
其它模板说明
</a>
</li>
</ul>
</li>
<li class="divider"></li>
<li class="chapter " data-level="6.1" data-path="../chapter04/">
<a href="../chapter04/">
第四章 模板引擎介绍
</a>
<ul class="articles">
<li class="chapter " data-level="6.1.1" data-path="../chapter04/CoreDoc.html">
<a href="../chapter04/CoreDoc.html">
核心文件
</a>
</li>
<li class="chapter " data-level="6.1.2" data-path="../chapter04/Grammar.html">
<a href="../chapter04/Grammar.html">
模板语法
</a>
</li>
<li class="chapter " data-level="6.1.3" data-path="../chapter04/LabelCategory.html">
<a href="../chapter04/LabelCategory.html">
标签分类
</a>
</li>
</ul>
</li>
<li class="divider"></li>
<li class="chapter " data-level="7.1" >
<span>
第五章 标签参考
</span>
<ul class="articles">
<li class="chapter " data-level="7.1.1" >
<span>
▶全局标签
</span>
</li>
<li class="chapter " data-level="7.1.2" data-path="../chapter05/GlobalLabel.html">
<a href="../chapter05/GlobalLabel.html">
Global全局配置标签
</a>
</li>
<li class="chapter " data-level="7.1.3" data-path="../chapter05/VariableLabel.html">
<a href="../chapter05/VariableLabel.html">
Variable全局变量标签
</a>
</li>
<li class="chapter " data-level="7.1.4" data-path="../chapter05/TemplateLabel.html">
<a href="../chapter05/TemplateLabel.html">
Template模版路径标签
</a>
</li>
<li class="chapter " data-level="7.1.5" data-path="../chapter05/IncludeLabel.html">
<a href="../chapter05/IncludeLabel.html">
Include引入文件标签
</a>
</li>
<li class="chapter " data-level="7.1.6" data-path="../chapter05/TypeLabel.html">
<a href="../chapter05/TypeLabel.html">
Type栏目调用标签
</a>
</li>
<li class="chapter " data-level="7.1.7" data-path="../chapter05/ChannelLabel.html">
<a href="../chapter05/ChannelLabel.html">
Channel频道列表标签
</a>
</li>
<li class="chapter " data-level="7.1.8" data-path="../chapter05/ListLabel.html">
<a href="../chapter05/ListLabel.html">
List文章列表标签
</a>
</li>
<li class="chapter " data-level="7.1.9" data-path="../chapter05/CategoryArtListLabel.html">
<a href="../chapter05/CategoryArtListLabel.html">
CategoryArtListLabel栏目内容列表标签
</a>
</li>
<li class="chapter " data-level="7.1.10" data-path="../chapter05/TagLabel.html">
<a href="../chapter05/TagLabel.html">
TagLabel标签列表标签
</a>
</li>
<li class="chapter " data-level="7.1.11" data-path="../chapter05/TreeLabel.html">
<a href="../chapter05/TreeLabel.html">
TreeLabel栏目树标签
</a>
</li>
<li class="chapter " data-level="7.1.12" data-path="../chapter05/AttachmentLabel.html">
<a href="../chapter05/AttachmentLabel.html">
AttachmentLabel附件标签
</a>
</li>
<li class="chapter " data-level="7.1.13" data-path="../chapter05/SqlLabel.html">
<a href="../chapter05/SqlLabel.html">
SqlLabel SQL标签
</a>
</li>
<li class="chapter " data-level="7.1.14" data-path="../chapter05/IfLabel.html">
<a href="../chapter05/IfLabel.html">
IfLabel判断标签
</a>
</li>
<li class="chapter " data-level="7.1.15" >
<span>
▶分页标签
</span>
</li>
<li class="chapter " data-level="7.1.16" data-path="../chapter05/CategoryLabel.html">
<a href="../chapter05/CategoryLabel.html">
Category分页栏目标签
</a>
</li>
<li class="chapter " data-level="7.1.17" data-path="../chapter05/TopCategoryLabel.html">
<a href="../chapter05/TopCategoryLabel.html">
TopCategory分页顶级栏目标签
</a>
</li>
<li class="chapter " data-level="7.1.18" data-path="../chapter05/LocationLabel.html">
<a href="../chapter05/LocationLabel.html">
Location当前位置标签
</a>
</li>
<li class="chapter " data-level="7.1.19" >
<span>
▶列表标签
</span>
</li>
<li class="chapter " data-level="7.1.20" data-path="../chapter05/PageListLabel.html">
<a href="../chapter05/PageListLabel.html">
PageList文章分页标签
</a>
</li>
<li class="chapter " data-level="7.1.21" data-path="../chapter05/PaginationLabel.html">
<a href="../chapter05/PaginationLabel.html">
Pagination显示分页标签
</a>
</li>
<li class="chapter " data-level="7.1.22" >
<span>
▶内容标签
</span>
</li>
<li class="chapter " data-level="7.1.23" data-path="../chapter05/ArticleLabel.html">
<a href="../chapter05/ArticleLabel.html">
Article文章页标签
</a>
</li>
<li class="chapter " data-level="7.1.24" data-path="../chapter05/PrevNextLabel.html">
<a href="../chapter05/PrevNextLabel.html">
PrevNext上一篇、下一篇标签
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="7.2" data-path="../chapter06/DataBase.html">
<a href="../chapter06/DataBase.html">
第六章 数据库
</a>
</li>
<li class="chapter " data-level="7.3" >
<span>
第七章 模板扩展
</span>
<ul class="articles">
<li class="chapter " data-level="7.3.1" data-path="../chapter07/Message.html">
<a href="../chapter07/Message.html">
留言投稿
</a>
</li>
<li class="chapter " data-level="7.3.2" data-path="../chapter07/Search.html">
<a href="../chapter07/Search.html">
网站搜索
</a>
</li>
<li class="chapter " data-level="7.3.3" data-path="../chapter07/DefineLabel.html">
<a href="../chapter07/DefineLabel.html">
定义标签
</a>
</li>
<li class="chapter " data-level="7.3.4" data-path="../chapter07/Regexp.html">
<a href="../chapter07/Regexp.html">
正则工具类
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="7.4" >
<span>
第八章 部署上线
</span>
<ul class="articles">
<li class="chapter " data-level="7.4.1" data-path="Environment.html">
<a href="Environment.html">
环境准备
</a>
</li>
<li class="chapter active" data-level="7.4.2" data-path="Packaging.html">
<a href="Packaging.html">
应用打包
</a>
</li>
<li class="chapter " data-level="7.4.3" data-path="Online.html">
<a href="Online.html">
项目上线
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="7.5" >
<span>
第九章 常见问题
</span>
<ul class="articles">
<li class="chapter " data-level="7.5.1" data-path="../chapter09/Business.html">
<a href="../chapter09/Business.html">
商业授权
</a>
</li>
<li class="chapter " data-level="7.5.2" data-path="../chapter09/ResourceDir.html">
<a href="../chapter09/ResourceDir.html">
资源目录
</a>
</li>
<li class="chapter " data-level="7.5.3" data-path="../chapter09/RichTextEditor.html">
<a href="../chapter09/RichTextEditor.html">
富文本编辑器
</a>
</li>
<li class="chapter " data-level="7.5.4" data-path="../chapter09/NavActive.html">
<a href="../chapter09/NavActive.html">
导航Active
</a>
</li>
<li class="chapter " data-level="7.5.5" data-path="../chapter09/CategoryPage.html">
<a href="../chapter09/CategoryPage.html">
栏目分页
</a>
</li>
<li class="chapter " data-level="7.5.6" data-path="../chapter09/CategoryFilter.html">
<a href="../chapter09/CategoryFilter.html">
多级栏目筛选
</a>
</li>
<li class="chapter " data-level="7.5.7" data-path="../chapter09/MutipleLanguage.html">
<a href="../chapter09/MutipleLanguage.html">
多语言网站
</a>
</li>
<li class="chapter " data-level="7.5.8" data-path="../chapter09/UploadContrl.html">
<a href="../chapter09/UploadContrl.html">
上传大小控制
</a>
</li>
<li class="chapter " data-level="7.5.9" data-path="../chapter09/ResourceNotFound.html">
<a href="../chapter09/ResourceNotFound.html">
上线图片404
</a>
</li>
<li class="chapter " data-level="7.5.10" data-path="../chapter09/Favicon.html">
<a href="../chapter09/Favicon.html">
站点Favicon
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="7.6" >
<span>
第十章 关于捐赠
</span>
<ul class="articles">
<li class="chapter " data-level="7.6.1" data-path="../chapter10/DonationList.html">
<a href="../chapter10/DonationList.html">
授权和捐赠
</a>
</li>
</ul>
</li>
<li class="divider"></li>
<li>
<a href="https://www.gitbook.com" target="blank" class="gitbook-link">
本书使用 GitBook 发布
</a>
</li>
</ul>
</nav>
</div>
<div class="book-body">
<div class="body-inner">
<div class="book-header" role="navigation">
<!-- Title -->
<h1>
<i class="fa fa-circle-o-notch fa-spin"></i>
<a href=".." >应用打包</a>
</h1>
</div>
<div class="page-wrapper" tabindex="-1" role="main">
<div class="page-inner">
<div id="book-search-results">
<div class="search-noresults">
<section class="normal markdown-section">
<div style="display: flex;">
<img src="http://121.8.219.2:18887/logo.png" height="30">
<div style="margin-left: 5px; font-size: 30px; line-height: 30px; font-weight: bold;">&#x68A6;&#x60F3;&#x5BB6;&#x5185;&#x5BB9;&#x7BA1;&#x7406;&#x7CFB;&#x7EDF;</div>
</div>
<hr>
<h3 id="&#x5E94;&#x7528;&#x6253;&#x5305;"><a name="&#x5E94;&#x7528;&#x6253;&#x5305;" class="plugin-anchor" href="#&#x5E94;&#x7528;&#x6253;&#x5305;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x5E94;&#x7528;&#x6253;&#x5305;</h3>
<ol>
<li><p>&#x5728;IDE&#x4E2D;&#x5C06;&#x9879;&#x76EE;&#x4E2D;&#x7684;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x90FD;&#x4FEE;&#x6539;&#x597D;&#xFF0C;&#x7136;&#x540E;&#x6267;&#x884C;maven&#x6253;&#x5305;&#x547D;&#x4EE4;&#xFF0C;&#x6253;&#x5305;&#x524D;&#x5F3A;&#x70C8;&#x5EFA;&#x8BAE;&#x5148;clean&#x3002;&#x6253;&#x5305;&#x524D;&#x5207;&#x6362;SpringBoot&#x73AF;&#x5883;&#x4E3A;prd&#xFF0C;&#x5E76;&#x5BF9;application-prd.yml&#x4E2D;&#x7684;&#x5404;&#x914D;&#x7F6E;&#x9879;&#x8FDB;&#x884C;&#x914D;&#x7F6E;&#x3002;</p>
</li>
<li><p>&#x4EE5;&#x4E0B;&#x4E3A;&#x53EF;&#x9009;&#x914D;&#x7F6E; </p>
<ol>
<li>&#x5C06;&#x4F9D;&#x8D56;jar&#x5305;&#x5355;&#x72EC;&#x6253;&#x5230;&#x76EE;&#x5F55;&#x4E2D;&#xFF0C;&#x8BF7;&#x53C2;&#x7167; <a href="https://iteachyou.cc/article/a3ef3eb4ce5d467b927ecd5c69a43035" target="_blank">Springboot&#x6253;&#x5305; &#x4F9D;&#x8D56;&#x5305;&#x5230;&#x5355;&#x72EC;&#x6587;&#x4EF6;&#x5939;</a></li>
</ol>
</li>
<li><p>&#x5F00;&#x542F;&#x9632;&#x706B;&#x5899;&#x548C;&#x5B89;&#x5168;&#x7EC4;</p>
<ol>
<li>&#x9632;&#x706B;&#x5899;&#x9700;&#x8981;&#x5F00;&#x542F;80&#x548C;443&#x7AEF;&#x53E3;</li>
<li>&#x4E91;&#x670D;&#x52A1;&#x5668;&#x9700;&#x8981;&#x5728;&#x7BA1;&#x7406;&#x754C;&#x9762;&#x4E2D;&#x5B89;&#x5168;&#x7EC4;&#x4E2D;&#x5F00;&#x542F;80&#x548C;443&#x7AEF;&#x53E3;</li>
</ol>
</li>
<li><p>&#x4E0A;&#x4F20;&#x5E94;&#x7528;&#x548C;&#x8D44;&#x6E90;&#x76EE;&#x5F55;</p>
<ol>
<li>&#x5728;/opt&#x76EE;&#x5F55;&#x4E2D;&#x521B;&#x5EFA;programs&#x548C;resources&#x4E24;&#x4E2A;&#x76EE;&#x5F55;<pre><code class="lang-shell">/opt
/programs # &#x5E94;&#x7528;&#x4E0A;&#x4F20;&#x5230;&#x8BE5;&#x76EE;&#x5F55;
/resources # &#x8D44;&#x6E90;&#x76EE;&#x5F55;&#x4E0A;&#x4F20;&#x5230;&#x8BE5;&#x76EE;&#x5F55;
</code></pre>
</li>
<li>&#x6700;&#x7EC8;&#x7684;&#x76EE;&#x5F55;&#x7ED3;&#x6784;<pre><code class="lang-shell">/opt
/programs # &#x5E94;&#x7528;&#x4E0A;&#x4F20;&#x5230;&#x8BE5;&#x76EE;&#x5F55;
/dreamer-cms.jar
/resources # &#x8D44;&#x6E90;&#x76EE;&#x5F55;&#x4E0A;&#x4F20;&#x5230;&#x8BE5;&#x76EE;&#x5F55;
/www.iteachyou.cc
/backups # &#x5907;&#x4EFD;&#x76EE;&#x5F55;
/config.json # &#x5BCC;&#x6587;&#x672C;&#x914D;&#x7F6E;&#x6587;&#x4EF6;
/htmls # &#x9759;&#x6001;&#x5316;&#x76EE;&#x5F55;
/templates # &#x6A21;&#x677F;&#x76EE;&#x5F55;
/uploads # &#x4E0A;&#x4F20;&#x76EE;&#x5F55;
</code></pre>
</li>
</ol>
</li>
</ol>
</section>
</div>
<div class="search-results">
<div class="has-results">
<h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
<ul class="search-results-list"></ul>
</div>
<div class="no-results">
<h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
</div>
</div>
</div>
</div>
</div>
</div>
<a href="Environment.html" class="navigation navigation-prev " aria-label="Previous page: 环境准备">
<i class="fa fa-angle-left"></i>
</a>
<a href="Online.html" class="navigation navigation-next " aria-label="Next page: 项目上线">
<i class="fa fa-angle-right"></i>
</a>
</div>
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"应用打包","level":"7.4.2","depth":2,"next":{"title":"项目上线","level":"7.4.3","depth":2,"path":"chapter08/Online.md","ref":"chapter08/Online.md","articles":[]},"previous":{"title":"环境准备","level":"7.4.1","depth":2,"path":"chapter08/Environment.md","ref":"chapter08/Environment.md","articles":[]},"dir":"ltr"},"config":{"plugins":["anchors","favicon-absolute","highlight"],"styles":{"website":"./styles/website.css"},"pluginsConfig":{"favicon-absolute":{"adsense":"ca-pub-7787441319194104","appleTouchIconMore":{},"appleTouchIconPrecomposed152":"./source/images/favicon.png","appleTouchIconPrecomposedMore":{},"favicon":"./source/images/favicon.ico"},"anchors":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","author":"王俊南","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"梦想家内容管理系统Dreamer CMS","language":"zh-hans","links":{"sidebar":{"I Teach You我教你":"http://www.iteachyou.cc","Dreamer CMSGitee":"https://gitee.com/iteachyou/dreamer_cms","Dreamer CMSGithub":"https://github.com/iteachyou-wjn/dreamer_cms"}},"gitbook":"3.2.3","description":"Dreamer CMS梦想家内容管理系统官方使用文档"},"file":{"path":"chapter08/Packaging.md","mtime":"2025-03-28T04:55:06.352Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2025-03-28T04:55:36.908Z"},"basePath":"..","book":{"language":""}});
});
</script>
</div>
<script src="../gitbook/gitbook.js"></script>
<script src="../gitbook/theme.js"></script>
<script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
<script src="../gitbook/gitbook-plugin-search/search.js"></script>
<script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
<script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
<script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
<script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
</body>
</html>