订单配置
This commit is contained in:
1 parent
e81481623c
commit
c7f43e30a9
11 files changed
+492
-19
No files matched your search
+20
-1
@@ -4,13 +4,32 @@
|
||||
|
||||
服务器上**不需要安装任何东西**,它复用的就是你已经能用的 SSH。
|
||||
|
||||
## 用哪个脚本
|
||||
|
||||
| 你的系统 | 脚本 | 配置文件 |
|
||||
|---|---|---|
|
||||
| Windows | `deploy.ps1` | `deploy.config.ps1`(照抄 `deploy.config.example.ps1`) |
|
||||
| macOS / Linux | `deploy.sh` | `deploy.config.sh`(照抄 `deploy.config.example.sh`) |
|
||||
|
||||
Mac 上先执行一次 `chmod +x deploy/deploy.sh`,之后用法和 Windows 版完全一样:
|
||||
|
||||
```bash
|
||||
./deploy/deploy.sh api
|
||||
./deploy/deploy.sh admin
|
||||
./deploy/deploy.sh
|
||||
./deploy/deploy.sh api --dry-run # 只打包、只显示会上传哪些文件,不真传
|
||||
./deploy/deploy.sh api --with-install # 顺带装依赖(只有改了 package.json 才需要)
|
||||
```
|
||||
|
||||
> 第一次用先跑 `--dry-run`,它会打印打包大小和文件清单,核对无误再去掉这个参数。
|
||||
|
||||
---
|
||||
|
||||
## 一次性配置
|
||||
|
||||
### 1. 填配置文件
|
||||
|
||||
编辑 `deploy/deploy.config.ps1`,需要改这几项:
|
||||
编辑 `deploy/deploy.config.ps1`(Mac 上是 `deploy/deploy.config.sh`,字段名多一层下划线,含义完全一样),需要改这几项:
|
||||
|
||||
| 配置项 | 填什么 | 怎么查 |
|
||||
|---|---|---|
|
||||
|
||||
Reference in new issue
Block a user