1.8 KiB
1.8 KiB
Installation Guide of node.console.web
Table of Contents
1. System requirements
-
OS
- Linux, Windows, MacOS
-
nodejs
- For support on installing nodejs, see https://git.faronear.org/tic/doc/src/master/InstallationGuide/nodejs.md
-
git
- For support on installing git, see https://git.faronear.org/tic/doc/src/master/InstallationGuide/git.md
-
node.server
2. Preparation
2.1 Download source code
git clone https://git.faronear.org/tic/node.console.web
cd node.console.web
git checkout master
2.2 Install dependencies
npm install
3. Launch
-
run lintto format filesnpm run lint -
run devto test source code and 'hot-start' in a local web servernpm run dev -
run distto pack source code into html/css/js for distributionnpm run dist -
run deployto upload distribution to remote hostnpm run deploy -- -p '远程登录密码' -k "用户私钥文件" -u '远程登录用户' -r '远程路径' -H '远程主机' -P '远程端口'或者不借助 npm, 直接调用 deploy.js:
node deploy.js -p 远程登录密码' -k "用户私钥文件" -u '远程登录用户' -r '远程路径' -H '远程主机' -P '远程端口' -
run daemonto launch web server on remote host登录到远程主机,下载并进入代码目录,然后启动 web 服务:
npm run daemon