Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

部署时一直处于打包压缩阶段 #4

Open
yugasun opened this issue Apr 5, 2020 · 0 comments
Open

部署时一直处于打包压缩阶段 #4

yugasun opened this issue Apr 5, 2020 · 0 comments
Labels

Comments

@yugasun
Copy link
Contributor

yugasun commented Apr 5, 2020

对于部分开发者在部署就 Egg.js 应用时,部署时一直显示:

[DEBUG] Compressing function ....

因为应用在部署上传前,会对项目代码进行打包压缩,包括 vendor 文件夹,大家知道此文件夹特别大,文件也很多,tencent-scf 组件在进行打包压缩时,会出现超时不响应问题。如果你也遇到此类问题,可以尝试如下操作:

  1. 删除 vendor 文件夹
  2. 执行 composer install --no-dev (只安装必要的模块)

然后重新执行 sls --debug 进行部署。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant