# How to reload configuration after app.yml changes?

**URL:** https://meta.discourse.org/t/how-to-reload-configuration-after-app-yml-changes/26363
**Category:** Self-hosting
**Created:** [15.Март.2015 14:39:11 UTC](https://meta.discourse.org/t/how-to-reload-configuration-after-app-yml-changes/26363 "2015-03-15T14:39:11Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![ralf](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ralf/32/115792_2.png) [@ralf](https://meta.discourse.org/u/ralf)
#### Post date: [15.Март.2015 14:39:12 UTC](https://meta.discourse.org/t/how-to-reload-configuration-after-app-yml-changes/26363/1 "2015-03-15T14:39:12Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [15.Март.2015 20:09:26 UTC](https://meta.discourse.org/t/how-to-reload-configuration-after-app-yml-changes/26363/2 "2015-03-15T20:09:26Z")

</div>

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

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [15.Март.2015 20:18:39 UTC](https://meta.discourse.org/t/how-to-reload-configuration-after-app-yml-changes/26363/3 "2015-03-15T20:18:39Z")

</div>

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

---

<div class="post-metadata">

### Author: ![ralf](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ralf/32/115792_2.png) [@ralf](https://meta.discourse.org/u/ralf)
#### Post date: [15.Март.2015 21:27:59 UTC](https://meta.discourse.org/t/how-to-reload-configuration-after-app-yml-changes/26363/4 "2015-03-15T21:27:59Z")

</div>

Thanks folks, greatly appreciated.

---

<div class="post-metadata">

### Author: ![maumar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/maumar/32/109886_2.png) [@maumar](https://meta.discourse.org/u/maumar)
#### Post date: [01.Август.2017 05:33:17 UTC](https://meta.discourse.org/t/how-to-reload-configuration-after-app-yml-changes/26363/5 "2017-08-01T05:33:17Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Lutz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lutz/32/65103_2.png) [@Lutz](https://meta.discourse.org/u/Lutz)
#### Post date: [01.Август.2017 07:51:27 UTC](https://meta.discourse.org/t/how-to-reload-configuration-after-app-yml-changes/26363/6 "2017-08-01T07:51:27Z")

</div>

The better method is to do a rebuild:

```plaintext
cd /var/discourse
./launcher rebuild app
```

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

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

---

<div class="post-metadata">

### Author: ![maumar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/maumar/32/109886_2.png) [@maumar](https://meta.discourse.org/u/maumar)
#### Post date: [01.Август.2017 19:44:01 UTC](https://meta.discourse.org/t/how-to-reload-configuration-after-app-yml-changes/26363/7 "2017-08-01T19:44:01Z")

</div>

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

---

<div class="post-metadata">

### Author: ![nukeador](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nukeador/32/107477_2.png) [@nukeador](https://meta.discourse.org/u/nukeador)
#### Post date: [03.Апрель.2018 22:08:08 UTC](https://meta.discourse.org/t/how-to-reload-configuration-after-app-yml-changes/26363/8 "2018-04-03T22:08:08Z")

</div>

> [@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.
