corot2a
(corot2a)
11 באוגוסט, 2025, 3:06am
1
שלום,
אני צריך לשנות את הגדרות ה-SMTP שלי ב-Discourse.
בדרך כלל, אני יודע שהרצת ./launcher rebuild app היא הדרך הסטנדרטית ליישם שינויי תצורה.
עם זאת, עקב מגבלות רשת ומגבלות גרסה, יש סיכוי גבוה ששחזור ייכשל בסביבה שלי. לכן, אני שוקל להשתמש ב:
./launcher destroy app && ./launcher start app
שאלתי היא:
אם אני מריץ את הפקודות הנ"ל, האם זה יסיר את תמונת ה-Docker שכבר נבנתה וידרוש בנייה מחדש מלאה?
או שזה רק יסיר וייצור מחדש את הקונטיינר תוך שמירה על התמונה הקיימת ללא שינוי?
תודה מראש על עזרתך!
Hi there, does this help?
Well, you don’t always need to rebuild
Doing a rebuild will often fix things that seem broken, but it takes a while. There are times when a full rebuild is not necessary; the above is usually the best advice, but If you change just SMTP settings, you can do just this to apply them without doing a full rebuild:
cd /var/discourse
./launcher destroy app
./launcher start app
To answer directly, yes, it’s this one - your built image is unaffected. The command is equivalent to a docker stop && docker rm, and it does not affect docker images at all.