فشل إعادة البناء لأن لا يزال على فرع `master`. الإصلاح باستخدام `git checkout main`

أعتقد أن هذا الـ yarn المفقود هو المشكلة؟ لا أعرف ما الذي قد يسببه أو أي شيء آخر قد يكون تفسيرًا…

discourse-checklist is already at latest compatible version
discourse-spoiler-alert is already at latest compatible version
discourse-affiliate is already at latest compatible version

I, [2022-02-15T18:02:48.675851 #1]  INFO -- : cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate'
I, [2022-02-15T18:02:55.018972 #1]  INFO -- : 
I, [2022-02-15T18:02:55.019167 #1]  INFO -- : cd /var/www/discourse && su discourse -c 'bundle exec rake themes:update assets:precompile'
sh: 1: yarn: not found
I, [2022-02-15T18:03:00.609631 #1]  INFO -- : Checking 'Easy Footer (TH)' for 'default'... up to date
Checking 'discourse-user-field-prompt' for 'default'... up to date
Checking 'Rotate Global Banner(JP)' for 'default'... 



FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake themes:update assets:precompile' failed with return #<Process::Status: pid 5437 exit 127>
Location of failure: /pups/lib/pups/exec_command.rb:112:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"assets_precompile", "cmd"=>["su discourse -c 'bundle exec rake themes:update assets:precompile'"]}
d6ac4e7c27174dd04269576be15628207fe7d8d19f99c6ea524836f8ee43b895
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one.
./discourse-doctor may help diagnose the problem.

تأتي صورتنا الأساسية مع yarn لفترة من الوقت. ما هو إصدار الصورة الأساسية الذي تستخدمه؟

إعجاب واحد (1)

اعتقدت أنني كنت أُصاب بالجنون.
كانت المشكلة هي أن هذا المضيف كان لا يزال على master؛ git checkout main قد حل المشكلة.
أعتقد أنه يجب عليّ إجراء git checkout main على المضيفين ذوي الحاويتين حيث يكون الإجراء هو التمهيد/التدمير/البدء بدلاً من إعادة البناء.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.