You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@linkis.apache.org by ca...@apache.org on 2022/09/07 14:02:54 UTC
[incubator-linkis-website] branch dev updated: update linkis-scriptis-install.md (#498)
This is an automated email from the ASF dual-hosted git repository.
casion pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-linkis-website.git
The following commit(s) were added to refs/heads/dev by this push:
new c6054d41b3 update linkis-scriptis-install.md (#498)
c6054d41b3 is described below
commit c6054d41b33523d8b654aff2411fc21d6cabe7c4
Author: 成彬彬 <10...@users.noreply.github.com>
AuthorDate: Wed Sep 7 22:02:49 2022 +0800
update linkis-scriptis-install.md (#498)
---
docs/deployment/linkis-scriptis-install.md | 7 +++++--
.../current/deployment/linkis-scriptis-install.md | 7 +++++--
2 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/docs/deployment/linkis-scriptis-install.md b/docs/deployment/linkis-scriptis-install.md
index f5fa8e1bd0..d27647808e 100644
--- a/docs/deployment/linkis-scriptis-install.md
+++ b/docs/deployment/linkis-scriptis-install.md
@@ -42,6 +42,9 @@ https://github.com/WeBankFinTech/DataSphereStudio/archive/refs/heads/branch-1.1.
# enter the web directory
cd DataSphereStudio/web
+#This step is only required for the first use
+lerna init
+
#Add dependencies Note: This is not through npm install but lerna bootstrap needs to be installed first learn This step only needs to be executed for the first time
lerna bootstrap
````
@@ -64,7 +67,7 @@ VUE_APP_MN_CONFIG_PREFIX=http://10.10.10.10:9001/api/rest_j/v1
```shell script
cd DataSphereStudio/web
# run scriptis component
-npm run serve --module=scriptis
+npm run serve --module=scriptis --micro_module=scriptis
````
Open the browser and access the application script through the link `http://localhost:8080` (the default port for local requests is 8080), because it will request the remote linkis-gatway service interface, which will cause cross-domain problems, chrome browser To solve cross-domain problems, please refer to [Solving Chrome Cross-Domain Problems](https://www.jianshu.com/p/56b1e01e6b6a)
@@ -78,7 +81,7 @@ Open the browser and access the application script through the link `http://loca
cd DataSphereStudio/web
#After the command is executed successfully, a folder named `dist` will appear in the web directory, which is the component resource code of the packaged scriptis. We need to deploy the front-end resource to the nginx server where linkis-web is located
-npm run build --module=scriptis
+npm run build --module=scriptis --micro_module=scriptis
````
### 4.2 Deployment
diff --git a/i18n/zh-CN/docusaurus-plugin-content-docs/current/deployment/linkis-scriptis-install.md b/i18n/zh-CN/docusaurus-plugin-content-docs/current/deployment/linkis-scriptis-install.md
index ba51363515..db4d3c96f1 100644
--- a/i18n/zh-CN/docusaurus-plugin-content-docs/current/deployment/linkis-scriptis-install.md
+++ b/i18n/zh-CN/docusaurus-plugin-content-docs/current/deployment/linkis-scriptis-install.md
@@ -42,6 +42,9 @@ https://github.com/WeBankFinTech/DataSphereStudio/archive/refs/heads/branch-1.1.
#进入 web 目录
cd DataSphereStudio/web
+#该步骤仅第一次使用时需要执行
+lerna init
+
#添加依赖 注意:这里不是通过 npm install 而是 lerna bootstrap 需先安装 learn 该步骤仅第一次使用时需要执行
lerna bootstrap
```
@@ -64,7 +67,7 @@ VUE_APP_MN_CONFIG_PREFIX=http://10.10.10.10:9001/api/rest_j/v1
```shell script
cd DataSphereStudio/web
# 运行 scriptis 组件
-npm run serve --module=scriptis
+npm run serve --module=scriptis --micro_module=scriptis
```
打开浏览器,通过链接`http://localhost:8080`(本地请求默认端口是 8080) 访问应用 scriptis ,因为会请求到远端的 linkis-gatway 服务接口,这会存在跨域问题,chrome 浏览器解决跨域问题可参考[解决 Chrome 跨域问题 ](https://www.jianshu.com/p/56b1e01e6b6a)
@@ -78,7 +81,7 @@ npm run serve --module=scriptis
cd DataSphereStudio/web
#该指令成功执行后,web 目录下会出现一个名叫 `dist` 的文件夹,该文件夹即为打包好 scriptis 的组件资源代码。我们需要将该前端资源部署到 linkis-web 所在的 nginx 服务器上
-npm run build --module=scriptis
+npm run build --module=scriptis --micro_module=scriptis
```
### 4.2 部署
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@linkis.apache.org
For additional commands, e-mail: commits-help@linkis.apache.org