记录一次重启按钮导致的故障
#417
-
问题现象在依赖管理里加完包以后,点了重启按钮, 导致所有接口502。 看了日志,发现是因为重启会重建docker容器 app-xxx,卡在了 解决方案
建议
|
Beta Was this translation helpful? Give feedback.
Answered by
maslow
Nov 19, 2022
Replies: 1 comment
-
# ...
instance-controller:
image: lafyun/instance-controller:latest
environment:
APP_SERVICE_ENV_NPM_INSTALL_FLAGS: ' --no-audit --no-fund'
# ...
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
seewhy163
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
APP_SERVICE_ENV_NPM_INSTALL_FLAGS
可以添加 npm install 的参数:--registry https://mirrors.huaweicloud.com/repository/npm/