mirror of
https://gitee.com/dolphinscheduler/DolphinScheduler.git
synced 2024-12-02 20:28:03 +08:00
commit
8aeb1b466b
@ -430,12 +430,22 @@
|
||||
<section class="normal markdown-section">
|
||||
|
||||
<h1 id="前端部署文档">前端部署文档</h1>
|
||||
<ul>
|
||||
<li><h5 id="1-开发环境搭建">1. 开发环境搭建</h5>
|
||||
</li>
|
||||
<li><h5 id="2-自动化部署">2. 自动化部署</h5>
|
||||
</li>
|
||||
<li><h5 id="3-手动部署">3. 手动部署</h5>
|
||||
</li>
|
||||
<li><h5 id="4-liunx下使用node启动并且守护进程">4. Liunx下使用node启动并且守护进程</h5>
|
||||
</li>
|
||||
</ul>
|
||||
<h3 id="1开发环境搭建">1.开发环境搭建</h3>
|
||||
<ul>
|
||||
<li><h4 id="安装node">安装node</h4>
|
||||
<li><h4 id="node安装">node安装</h4>
|
||||
<p>Node包下载 (注意版本 8.9.4) <code>https://nodejs.org/download/release/v8.9.4/</code> </p>
|
||||
</li>
|
||||
<li><h4 id="构建项目">构建项目</h4>
|
||||
<li><h4 id="前端项目构建">前端项目构建</h4>
|
||||
<p>用命令行模式 <code>cd</code> 进入 <code>escheduler-ui</code>项目目录并执行 <code>npm install</code> 拉取项目依赖包</p>
|
||||
</li>
|
||||
</ul>
|
||||
@ -459,8 +469,7 @@ API_BASE = http://192.168.220.204:12345
|
||||
<li><p><code>npm run build</code> 项目打包 (打包后根目录会创建一个名为dist文件夹,用于发布线上Nginx)</p>
|
||||
</li>
|
||||
</ul>
|
||||
<h3 id="2自动部署方式">2.自动部署方式</h3>
|
||||
<h3 id="2自动化部署">2.自动化部署`</h3>
|
||||
<h3 id="2自动化部署">2.自动化部署</h3>
|
||||
<p>在项目<code>escheduler-ui</code>根目录编辑安装文件<code>vi install(线上环境).sh</code></p>
|
||||
<p>更改前端访问端口和后端代理接口地址</p>
|
||||
<pre><code># 配置前端访问端口
|
||||
@ -469,8 +478,6 @@ esc_proxy="8888"
|
||||
# 配置代理后端接口
|
||||
esc_proxy_port="http://192.168.220.154:12345"
|
||||
</code></pre><p>前端自动部署基于<code>yum</code>操作,部署之前请先安装更新`yum</p>
|
||||
<p>在项目<code>escheduler-ui</code>根目录下,修改install.sh中的参数,执行<code>./install(线上环境).sh</code> </p>
|
||||
<h3 id="3手动部署方式">3.手动部署方式</h3>
|
||||
<p>在项目<code>escheduler-ui</code>根目录执行<code>./install(线上环境).sh</code> </p>
|
||||
<h3 id="3手动部署">3.手动部署</h3>
|
||||
<p>安装epel源 <code>yum install epel-release -y</code></p>
|
||||
@ -553,14 +560,12 @@ esc_proxy_port="http://192.168.220.154:12345"
|
||||
│ npm │ 0 │ N/A │ fork │ 6168 │ online │ 31 │ 0s │ 0% │ 5.6 MB │ root │ disabled │
|
||||
└──────────┴────┴─────────┴──────┴──────┴────────┴─────────┴────────┴─────┴──────────┴──────┴──────────┘
|
||||
Use `pm2 show <id|name>` to get more details about an app
|
||||
## FAQ
|
||||
|
||||
#### 1. 上传文件大小限制
|
||||
编辑配置文件 `vi /etc/nginx/nginx.conf`
|
||||
</code></pre><h1 id="更改上传大小">更改上传大小</h1>
|
||||
<p>client_max_body_size 1024m
|
||||
```</p>
|
||||
|
||||
</code></pre><h2 id="问题">问题</h2>
|
||||
<h4 id="1-上传文件大小限制">1. 上传文件大小限制</h4>
|
||||
<p>编辑配置文件 <code>vi /etc/nginx/nginx.conf</code></p>
|
||||
<pre><code># 更改上传大小
|
||||
client_max_body_size 1024m
|
||||
</code></pre>
|
||||
|
||||
</section>
|
||||
|
||||
@ -599,7 +604,7 @@ esc_proxy_port="http://192.168.220.154:12345"
|
||||
<script>
|
||||
var gitbook = gitbook || [];
|
||||
gitbook.push(function() {
|
||||
gitbook.page.hasChanged({"page":{"title":"环境搭建","level":"1.2.1","depth":2,"next":{"title":"安装及配置","level":"1.2.2","depth":2,"anchor":"#安装及配置","path":"前端部署文档.md","ref":"前端部署文档.md#安装及配置","articles":[]},"previous":{"title":"前端部署文档","level":"1.2","depth":1,"ref":"","articles":[{"title":"环境搭建","level":"1.2.1","depth":2,"anchor":"#前端项目环境构建及编译","path":"前端部署文档.md","ref":"前端部署文档.md#前端项目环境构建及编译","articles":[]},{"title":"安装及配置","level":"1.2.2","depth":2,"anchor":"#安装及配置","path":"前端部署文档.md","ref":"前端部署文档.md#安装及配置","articles":[]},{"title":"项目生产环境Nginx配置","level":"1.2.3","depth":2,"anchor":"#项目生产环境配置","path":"前端部署文档.md","ref":"前端部署文档.md#项目生产环境配置","articles":[]},{"title":"前端项目发布","level":"1.2.4","depth":2,"anchor":"#前端项目发布","path":"前端部署文档.md","ref":"前端部署文档.md#前端项目发布","articles":[]},{"title":"问题","level":"1.2.5","depth":2,"anchor":"#问题","path":"前端部署文档.md","ref":"前端部署文档.md#问题","articles":[]}]},"dir":"ltr"},"config":{"plugins":["expandable-chapters","insert-logo-link","livereload"],"styles":{"website":"./styles/website.css"},"pluginsConfig":{"livereload":{},"insert-logo-link":{"src":"http://geek.analysys.cn/static/upload/236/2019-03-29/379450b4-7919-4707-877c-4d33300377d4.png","url":"https://github.com/analysys/EasyScheduler"},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"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},"expandable-chapters":{}},"theme":"default","author":"YIGUAN","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":"调度系统-EasyScheduler","language":"zh-hans","gitbook":"3.2.3","description":"调度系统"},"file":{"path":"前端部署文档.md","mtime":"2019-04-12T03:01:32.517Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-04-10T07:14:01.407Z"},"basePath":".","book":{"language":""}});
|
||||
gitbook.page.hasChanged({"page":{"title":"环境搭建","level":"1.2.1","depth":2,"next":{"title":"安装及配置","level":"1.2.2","depth":2,"anchor":"#安装及配置","path":"前端部署文档.md","ref":"前端部署文档.md#安装及配置","articles":[]},"previous":{"title":"前端部署文档","level":"1.2","depth":1,"ref":"","articles":[{"title":"环境搭建","level":"1.2.1","depth":2,"anchor":"#前端项目环境构建及编译","path":"前端部署文档.md","ref":"前端部署文档.md#前端项目环境构建及编译","articles":[]},{"title":"安装及配置","level":"1.2.2","depth":2,"anchor":"#安装及配置","path":"前端部署文档.md","ref":"前端部署文档.md#安装及配置","articles":[]},{"title":"项目生产环境Nginx配置","level":"1.2.3","depth":2,"anchor":"#项目生产环境配置","path":"前端部署文档.md","ref":"前端部署文档.md#项目生产环境配置","articles":[]},{"title":"前端项目发布","level":"1.2.4","depth":2,"anchor":"#前端项目发布","path":"前端部署文档.md","ref":"前端部署文档.md#前端项目发布","articles":[]},{"title":"问题","level":"1.2.5","depth":2,"anchor":"#问题","path":"前端部署文档.md","ref":"前端部署文档.md#问题","articles":[]}]},"dir":"ltr"},"config":{"plugins":["expandable-chapters","insert-logo-link","livereload"],"styles":{"website":"./styles/website.css"},"pluginsConfig":{"livereload":{},"insert-logo-link":{"src":"http://geek.analysys.cn/static/upload/236/2019-03-29/379450b4-7919-4707-877c-4d33300377d4.png","url":"https://github.com/analysys/EasyScheduler"},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"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},"expandable-chapters":{}},"theme":"default","author":"YIGUAN","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":"调度系统-EasyScheduler","language":"zh-hans","gitbook":"3.2.3","description":"调度系统"},"file":{"path":"前端部署文档.md","mtime":"2019-04-12T03:16:34.222Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-04-10T07:14:01.407Z"},"basePath":".","book":{"language":""}});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
@ -1,11 +1,20 @@
|
||||
# 前端部署文档
|
||||
|
||||
- ##### 1. 开发环境搭建
|
||||
|
||||
- ##### 2. 自动化部署
|
||||
|
||||
- ##### 3. 手动部署
|
||||
|
||||
- ##### 4. Liunx下使用node启动并且守护进程
|
||||
|
||||
|
||||
### 1.开发环境搭建
|
||||
|
||||
- #### 安装node
|
||||
- #### node安装
|
||||
Node包下载 (注意版本 8.9.4) `https://nodejs.org/download/release/v8.9.4/`
|
||||
|
||||
- #### 构建项目
|
||||
- #### 前端项目构建
|
||||
用命令行模式 `cd` 进入 `escheduler-ui`项目目录并执行 `npm install` 拉取项目依赖包
|
||||
|
||||
> 如果 `npm install` 速度非常慢
|
||||
@ -14,6 +23,8 @@ Node包下载 (注意版本 8.9.4) `https://nodejs.org/download/release/v8.9.4/`
|
||||
|
||||
> 运行 `cnpm install`
|
||||
|
||||
|
||||
|
||||
> ##### !!!这里特别注意 项目如果在拉取依赖包的过程中报 " node-sass error " 错误,请在执行完后再次执行以下命令
|
||||
```
|
||||
npm install node-sass --unsafe-perm //单独安装node-sass依赖
|
||||
@ -33,9 +44,8 @@ API_BASE = http://192.168.220.204:12345
|
||||
- `npm run build` 项目打包 (打包后根目录会创建一个名为dist文件夹,用于发布线上Nginx)
|
||||
|
||||
|
||||
### 2.自动部署方式
|
||||
|
||||
### 2.自动化部署`
|
||||
### 2.自动化部署
|
||||
|
||||
在项目`escheduler-ui`根目录编辑安装文件`vi install(线上环境).sh`
|
||||
|
||||
@ -51,11 +61,6 @@ esc_proxy_port="http://192.168.220.154:12345"
|
||||
|
||||
前端自动部署基于`yum`操作,部署之前请先安装更新`yum
|
||||
|
||||
在项目`escheduler-ui`根目录下,修改install.sh中的参数,执行`./install(线上环境).sh`
|
||||
|
||||
|
||||
|
||||
### 3.手动部署方式
|
||||
在项目`escheduler-ui`根目录执行`./install(线上环境).sh`
|
||||
|
||||
|
||||
@ -162,8 +167,11 @@ systemctl restart nginx
|
||||
│ npm │ 0 │ N/A │ fork │ 6168 │ online │ 31 │ 0s │ 0% │ 5.6 MB │ root │ disabled │
|
||||
└──────────┴────┴─────────┴──────┴──────┴────────┴─────────┴────────┴─────┴──────────┴──────┴──────────┘
|
||||
Use `pm2 show <id|name>` to get more details about an app
|
||||
## FAQ
|
||||
|
||||
```
|
||||
|
||||
|
||||
## 问题
|
||||
#### 1. 上传文件大小限制
|
||||
编辑配置文件 `vi /etc/nginx/nginx.conf`
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user