From b423dfdbf45f979e22d0ebc3697d1e1c28aaff70 Mon Sep 17 00:00:00 2001 From: "luk.lu" Date: Mon, 20 May 2019 12:01:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=E6=96=87=E6=A1=A3=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doc/Installation.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/doc/Installation.md b/doc/Installation.md index aca57ca..daf29f0 100644 --- a/doc/Installation.md +++ b/doc/Installation.md @@ -16,11 +16,11 @@ + nodejs - + For support on installing nodejs, see + + For support on installing nodejs, see + git - + For support on installing git, see + + For support on installing git, see + node.server @@ -28,7 +28,7 @@ ## 2. Preparation -2.1 Download source code +2.1 Download source code/下载源码 ``` git clone https://git.faronear.org/tic/node.console.web @@ -36,7 +36,7 @@ cd node.console.web git checkout master ``` -2.2 Install dependencies +2.2 Install dependencies/安装依赖 ``` npm install @@ -44,25 +44,25 @@ npm install ## 3. Launch -1. `run lint` to format files +1. `lint` to format files ``` npm run lint ``` -2. `run dev` to test source code and 'hot-start' in a local web server +2. `dev` to test source code and 'hot-start' in a local web server ``` npm run dev ``` -3. `run dist` to pack source code into html/css/js for distribution +3. `dist` to pack source code into html/css/js for distribution ``` npm run dist ``` -4. `run deploy` to upload distribution to remote host +4. `deploy` to upload distribution to a TIC node host ``` npm run deploy -- -p '远程登录密码' -k "用户私钥文件" -u '远程登录用户' -r '远程路径' -H '远程主机' -P '远程端口' @@ -72,9 +72,9 @@ npm install node deploy.js -p 远程登录密码' -k "用户私钥文件" -u '远程登录用户' -r '远程路径' -H '远程主机' -P '远程端口' ``` -5. `run daemon` to launch web server on remote host +5. `daemon` to launch web server on a TIC node host - 登录到远程主机,下载并进入代码目录,然后启动 web 服务: + 登录到一台 TIC 节点主机,下载并进入代码目录,然后启动 web 服务: ``` npm run daemon ```