Skip to content

Commit 15f2f7b

Browse files
Merge pull request #10 from owenlovemika/master
update both chinese version and english version of deploy documents
2 parents 76aa36d + 3a18ea7 commit 15f2f7b

File tree

2 files changed

+51
-23
lines changed

2 files changed

+51
-23
lines changed

docs/en_US/ch1/Front-end_deployment_documentation.md

Lines changed: 41 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,44 @@ Scriptis is a data analysis tool based on Linkis. Before deploying Scriptis, you
22

33
## 1 Preparation
44

5-
### (1)Click release to select the corresponding installation package to download
5+
1. Select the corresponding installation package to download.
66

7-
### (2)Unzip the downloaded installation package
7+
2. Unzip the downloaded installation package in the installation directory: unzip wedatasphere-scriptis-0.5.0-dist.zip.
88

99
## 2 Deploy
1010

11-
### (1) Install Nginx
11+
​ There are two deployment methods, automated and manual deployment.
1212

13-
```
14-
sudo yum install nginx -y
15-
```
13+
### 2.1 Automated deployment
1614

17-
### (2) Create an Nginx configuration file (you can modify the file name by yourself)
15+
Go to the frontend directory ```wedatasphere-scriptis``` and edit ```vi config.sh ``` to change the interface address of the frontend and backend port. backend port interface address is the gateway address of linkis.
16+
17+
### (3) Modify and save the configuration file created above
1818

1919
```
20-
sudo vi /etc/nginx/conf.d/scriptis.conf
20+
# Configuring front-end ports
21+
scriptis_port="8088"
22+
23+
# URL of the backend linkis gateway
24+
linkis_url="http://localhost:20401"
25+
26+
# Scriptis ip address
27+
scriptis_ipaddr=$(ip addr | awk '/^[0-9]+: / {}; /inet.*global/ {print gensub(/(.*)\/(.*)/, "\\1", "g", $2)}')
2128
```
2229

23-
### (3) Modify and save the configuration file created above
30+
After the modification, run the following command in the directory: ```sudo sh install.sh > install.log 2>&1```
31+
32+
Next, you can access ```http://scriptis_ipaddr:scriptis_port``` directly via Chrome, scriptis_port is the port configured in config.sh and scriptis_ipaddr is the IP of the machine that used for installation.
33+
34+
If encounter access failure, please check install.log and find out the errors.
35+
36+
### 2.2 Manual deployment
37+
38+
1. Install Nginx: ```sudo yum install nginx -y```
39+
40+
2. Modify the configuration file:```sudo vi /etc/nginx/conf.d/scriptis.conf```
41+
42+
Add the following:
2443

2544
```
2645
server {
@@ -29,17 +48,18 @@ server {
2948
#charset koi8-r;
3049
#access_log /var/log/nginx/host.access.log main;
3150
location / {
32-
root /appcom/Install/scriptis/ROOT; # decompression directory
51+
root /appcom/Install/scriptis/ROOT; # directory where package decompressed
52+
#in the fronted
3353
index index.html index.html;
3454
}
35-
location /ws {#webSocket configuration support
36-
proxy_pass http://192.168.xxx.xxx:9001;# IP port of the linkis-gateway service
55+
location /ws {#webSocket configure spport
56+
proxy_pass http://192.168.xxx.xxx:9001;#IP port of the linkis gateway service
3757
proxy_http_version 1.1;
3858
proxy_set_header Upgrade $http_upgrade;
3959
proxy_set_header Connection "upgrade";
4060
}
4161
location /api {
42-
proxy_pass http://192.168.xxx.xxx:9001; # IP port of the linkis-gateway service
62+
proxy_pass http://192.168.xxx.xxx:9001;#IP port of the linkis gateway service
4363
proxy_set_header Host $host;
4464
proxy_set_header X-Real-IP $remote_addr;
4565
proxy_set_header x_real_ipP $remote_addr;
@@ -62,33 +82,31 @@ server {
6282
}
6383
```
6484

65-
## 3 Start Service
66-
67-
```
68-
sudo systemctl restart nginx
69-
```
85+
3. Copy the frontend package to the corresponding directory: ```/appcom/Install/scriptis/ROOT; # directory where package decompressed in the frontend```
86+
4. Start service: ```sudo systemctl restart nginx```
87+
5. You can directly access ```http://nginx_ip:nginx_port``` via Chrome after execution.
7088

71-
## 4 FAQs
89+
## 3 FAQs
7290

73-
### (1) limitations on the size of files that being uploaded
91+
(1) limitations on the size of files that being uploaded
7492

7593
```
7694
sudo vi /etc/nginx/nginx.conf
7795
```
7896

79-
Change the uploading size
97+
Change the uploading size:
8098

8199
```
82100
client_max_body_size 200m
83101
```
84102

85-
### (2) Interface timeout
103+
(2) Interface timeout
86104

87105
```
88106
sudo vi /etc/nginx/conf.d/scriptis.conf
89107
```
90108

91-
Change the time of interface timeout
109+
Change the interface timeout:
92110

93111
```
94112
proxy_read_timeout 600s

docs/zh_CN/ch1/前台部署文档.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,16 +83,26 @@ server {
8383
## 3、常见问题
8484

8585
(1)上传文件大小限制
86+
87+
```
8688
sudo vi /etc/nginx/nginx.conf
89+
```
90+
8791
更改上传大小
92+
8893
```
8994
client_max_body_size 200m
9095
```
9196

9297
(2)接口超时
9398

99+
```
94100
sudo vi /etc/nginx/conf.d/scriptis.conf
101+
```
102+
103+
95104
更改接口超时时间
105+
96106
```
97107
proxy_read_timeout 600s
98108
```

0 commit comments

Comments
 (0)