You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/en_US/ch1/Front-end_deployment_documentation.md
+41-23Lines changed: 41 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,25 +2,44 @@ Scriptis is a data analysis tool based on Linkis. Before deploying Scriptis, you
2
2
3
3
## 1 Preparation
4
4
5
-
### (1)Click release to select the corresponding installation package to download
5
+
1. Select the corresponding installation package to download.
6
6
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.
8
8
9
9
## 2 Deploy
10
10
11
-
### (1) Install Nginx
11
+
There are two deployment methods, automated and manual deployment.
12
12
13
-
```
14
-
sudo yum install nginx -y
15
-
```
13
+
### 2.1 Automated deployment
16
14
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
### (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```
root /appcom/Install/scriptis/ROOT; # directory where package decompressed
52
+
#in the fronted
33
53
index index.html index.html;
34
54
}
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 linkisgateway service
37
57
proxy_http_version 1.1;
38
58
proxy_set_header Upgrade $http_upgrade;
39
59
proxy_set_header Connection "upgrade";
40
60
}
41
61
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 linkisgateway service
43
63
proxy_set_header Host $host;
44
64
proxy_set_header X-Real-IP $remote_addr;
45
65
proxy_set_header x_real_ipP $remote_addr;
@@ -62,33 +82,31 @@ server {
62
82
}
63
83
```
64
84
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```
0 commit comments