How to reload configuration after app.yml changes?

AI-generated summary

The discussion revolves around reloading configuration changes to app.yml without taking the entire site down. ralf initially asked if rebuilding the app with ./launcher rebuild app is the only way to update the running configuration. riking suggested using ./launcher restart app instead, but only if the changes are in the env: section. However, sam noted that this method is not reliable if the env variables are needed for bootstrapping.

Later, maumar tried using ./launcher restart app after changing SMTP auth parameters, but the changes were not applied. Lutz recommended rebuilding the app using ./launcher rebuild app for the changes to take effect. Although this method works, maumar and nukeador expressed concerns about the time it takes to rebuild the app, especially on servers where the rebuild process can take more than 20 minutes.

Hi there,

I love Discourse and the community. Here is a quick question: Say I’ve made some changes to app.yaml, like modifying SMTP settings, is the only and correct way of updating the running config via the ./launcher rebuild app?

Or is there another way to reload the config without taking the entire site down for a moment?

If, and Only if the only changes you’ve made are to the env: section, then you can use ./launcher restart app instead

sort of, as long as you don’t need that env for bootstrapping.

Thanks folks, greatly appreciated.

Sorry t revive this ancient topic, I just changed smtp auth parameters, I issue
/var/discourse # ./launcher restart app

  • /usr/bin/docker stop -t 10 app
    app

starting up existing container

  • /usr/bin/docker start app
    app

but it is still using old parameters, as changes was not taken
is there a cache? or something other I dunno…
thanks in advance for your help

The better method is to do a rebuild:

cd /var/discourse
./launcher rebuild app

If you also want to update to the newest version, do this intead:

cd /var/discourse
git pull
./launcher rebuild app

Ok, it does work, but I should to rebuild all, something that can take many minutes, only to re-read smtp credentials…ok, that’s it

Also wondering about this, specially on a server where the rebuild takes more than 20 minutes.