by manual installation, I could cease the rails server to reload the config files. Is there something like the rails server within docker?
AI-generated summary
The discussion revolves around restarting the web server in Docker. berniegao initially asked if there’s a way to restart the web server similar to reloading config files in a manual Rails server installation. watchmanmonitor suggested using ./launcher stop app and ./launcher start app, but berniegao clarified that this method restarts the entire Docker container.
sam then provided the correct method: ./launcher enter app followed by sv restart unicorn. Jared_Smith1 asked if exiting the app is necessary after this step.
The conversation also touched on troubleshooting issues, such as SpaceMonkey encountering an error when trying to run ./launcher enter app, which Stephen helped resolve.
Additionally, trusktr asked if there’s a UI button to restart the server, and jomaxro explained that there isn’t one. trusktr suggested that a UI button for rebuilding would be convenient.
jomaxro clarified that most changes to the app.yml require a rebuild, which cannot be triggered from the UI. Stephen added that some settings, such as SMTP, can be updated and picked up immediately by running ./launcher destroy app and ./launcher start app, while others require a rebuild.
This seems to work for me:
doing so will restart the entire docker container. what I trying to do is to restart the web server without touch the container, such as using “rails server” and then stop it without utilizing docker.
why are you trying to do this, not following at all. Anyway here you go.
cd /var/discourse
./launcher enter app
sv restart unicorn
should we exit app after this step? I’m so new to this if it wasn’t obvious
/var/www/discourse doesn’t exist outside the app, if you can see that path you’re already inside discourse.
Type exit - does that end the ssh connection, or bring you back to /var/discourse?
هل توجد زر لإعادة تشغيل الخادم من واجهة المستخدم؟ أرى زرًا للترقية عند صدور إصدار جديد، وأعتقد أنه يقوم بإعادة التشغيل، لكنني لا أرى زرًا مخصصًا لإعادة التشغيل فقط.
لا، ليس هناك. لماذا تحتاج إلى إعادة تشغيل خادم الويب؟ ما هي المشكلة التي تحاول حلها؟
أردت إعادة تشغيل الخادم لمعرفة ما إذا كانت تغييرات ملف app.yml ستطبق. أعتقد أنه يحتاج أيضًا إلى إعادة بناء. ربما يكون زر في واجهة المستخدم لذلك (قرب قسم الترقية في لوحة الإدارة) سيكون مريحًا أيضًا.
معظم التغييرات في app.yml تتطلب إعادة بناء. لا يمكن تشغيل عمليات إعادة البناء من واجهة المستخدم، بل يجب الاتصال بالخادم نفسه خارج حاوية docket.
يمكن تحديث إعدادات مثل SMTP في ملف yml وسيتم التقاطها فورًا عبر:
./launcher destroy app
./launcher start app
بينما تتطلب عناصر أخرى، بما في ذلك الإضافات، إعادة بناء.
