حسنًا، تم الإصلاح وفقًا لـ Stuck on yarn install, Time out.
للإشارة، في /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 جيجابايت.