运行 lean deploy --prod 部署日志如下 :

[INFO] lean (v1.1.0) running on darwin/amd64
[INFO] Current app: xxx (xxx), group: web, region: us-w1
[INFO] Deploying new verison to production
[INFO] Python runtime detected
[INFO] pyenv detected. Please make sure pyenv is configured properly.
[INFO] Found executable file: `/usr/local/bin/python3.8`
[INFO] Uploading file 3.03 MiB / 3.03 MiB [=========================] 100.00% 6s
[REMOTE] 开始构建 20221031-145859
[REMOTE] 正在下载应用代码 ...
[REMOTE] 正在解压缩应用代码 ...
[REMOTE] 运行环境:python
[REMOTE] 正在下载和安装依赖项 ...
[REMOTE] [ERROR] 部署失败:build failed:   %!T(MISSING)otal    %!R(MISSING)eceived %!X(MISSING)ferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1839  100  1839    0     0  91950      0 --:--:-- --:--:-- --:--:-- 91950
Cloning into '/usr/share/pyenv'...
Cloning into '/usr/share/pyenv/plugins/pyenv-doctor'...
Cloning into '/usr/share/pyenv/plugins/pyenv-installer'...
Cloning into '/usr/share/pyenv/plugins/pyenv-update'...
Cloning into '/usr/share/pyenv/plugins/pyenv-virtualenv'...
Cloning into '/usr/share/pyenv/plugins/pyenv-which-ext'...
Cloning into '/usr/share/pyenv/plugins/xxenv-latest'...
pyenv: no installed versions match the prefix `install'
The command '/bin/sh -c chmod +x /usr/bin/start-wsgi.py &&    curl -L https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer | bash &&    git clone https://github.com/momo-lab/xxenv-latest.git "$(pyenv root)"/plugins/xxenv-latest &&    pyenv latest install 3.8 &&    pyenv latest global 3.8 &&    pip install --upgrade pip &&    pip install  'gevent>=21.1.0,<22.0.0' 'click>=6.7,<7.0' 'requests>=2.25.1' 'gevent-websocket>=0.10.1,<1.0.0' 'uwsgi>=2.0.0,<3.0.0'' returned a non-zero code: 1
Deployment failed

requirements.txt 内容如下 :

gevent-websocket>=0.9.5,<1.0.0
leancloud>=2.9.4,<3.0.0
Flask>=1.0.0
Flask-Sockets>=0.1,<1.0
requests
pytz
beautifulsoup4
markupsafe==2.0.1

你好,问题能够复现。稍等,我们排查一下。

问题已经修复了,还请重新部署试试。