I, [2024-08-07T11:22:31.056567 #1] INFO -- : cd /var/www/discourse & su discourse -c 'yarn install --frozen-lockfile & yarn cache clean'
warning Resolution field "unset-value@2.0.1" is incompatible with requested version "unset-value@^1.0.0"
error Error: https://registry.yarnpkg.com/rxjs/-/rxjs-6.6.7.tgz: ESOCKETTIMEDOUT
<s
عندما أتبع الرابط أرى هذا. لا أعرف ما إذا كان ذلك ذا صلة..
للإشارة، في /var/discourse/templates/web.template.yml أضفت هذه الكتلة:
- exec:
cd: $home
cmd:
- su discourse -c 'yarn config set network-timeout 600000 -g'
قبل هذه التي يتم استدعاؤها:
- exec:
cd: $home
hook: yarn
cmd:
- |
if [ "$version" != "tests-passed" ]; then
rm -rf app/assets/javascripts/node_modules
fi
- su discourse -c 'yarn install --frozen-lockfile && yarn cache clean'
ولكن لماذا ينتهي الوقت؟ الحل في الموضوع المرتبط يذكر أنه بسبب مواصفات الخادم الصغيرة (Google e2.micro instance، نواتان، 1 جيجابايت ذاكرة وصول عشوائي). ولكن هذا خادم افتراضي خاص بـ 4 نوى و 6 جيجابايت.