ralf
(Ralf Rottmann)
15 במרץ, 2015, 2:39pm
1
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?
4 לייקים
riking
(Kane York)
15 במרץ, 2015, 8:09pm
2
If, and Only if the only changes you’ve made are to the env:
section, then you can use ./launcher restart app
instead
8 לייקים
sam
(Sam Saffron)
15 במרץ, 2015, 8:18pm
3
sort of, as long as you don’t need that env for bootstrapping.
לייק 1
ralf
(Ralf Rottmann)
15 במרץ, 2015, 9:27pm
4
Thanks folks, greatly appreciated.
לייק 1
maumar
(Maurizio Marini)
1 באוגוסט, 2017, 5:33am
5
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
לייק 1
Lutz
(Lutz Biermann)
1 באוגוסט, 2017, 7:51am
6
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
5 לייקים
maumar
(Maurizio Marini)
1 באוגוסט, 2017, 7:44pm
7
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
6 לייקים
nukeador
(Nukeador)
3 באפריל, 2018, 10:08pm
8
maumar:
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.
3 לייקים