Remove built-in proxy from deploy scripts and show pip install progress.
Proxy is optional via manual env vars only; update.sh also drops quiet pip/npm flags. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -145,8 +145,25 @@ ufw enable
|
||||
|
||||
```bash
|
||||
WEB_PORT=23566 INSTALL_DIR=/opt/secondary-school-grade-archive bash deploy/install.sh
|
||||
|
||||
# 使用官方 PyPI(海外服务器可去掉国内镜像)
|
||||
PIP_MIRROR=https://pypi.org/simple bash deploy/install.sh
|
||||
```
|
||||
|
||||
### 网络代理(可选,脚本内不内置)
|
||||
|
||||
一键部署**不会**自动配置代理。无代理环境可直接运行,不会因代理报错。
|
||||
|
||||
若本机网络需走代理,请在**执行安装前**手动 export(仅当前终端生效):
|
||||
|
||||
```bash
|
||||
export HTTP_PROXY=http://你的代理地址:端口
|
||||
export HTTPS_PROXY=http://你的代理地址:端口
|
||||
bash deploy/install.sh
|
||||
```
|
||||
|
||||
不设置则不走代理。`pip install` 会**显示完整下载/安装进度**,不再静默。
|
||||
|
||||
---
|
||||
|
||||
## 11. 版权
|
||||
|
||||
Reference in New Issue
Block a user