When making simple mail server config changes, can the full `launcher rebuild app` be sped up?

When I make changes to /var/discourse/containers/app.yml that only revolve around smtp server config changes, can the launcher rebuild app process be significantly sped up?

I suppose I could enter the container, modify the config itself and restart the app there, but it seems like I must be missing a simpler/cleaner solution that won’t require a full rebuild…

SMTP changes do require full rebuild.
You can go for a two container setup if you want to speed up the process (it will actually just reduce downtime and not the actual process)

The idea is that once set up, people very very rarely have to change SMTP since usually one SMTP is fine and they don’t have to change it every couple of days.

1 Like

If you have changed just environment variables you can

 ./launcher destroy app
 ./launcher start app
5 Likes

What if I have changed code in the repo of a previously-installed plugin? Currently I do a full rebuild, but can I git pull the plugin and somehow restart?

It’s not recommended. If you want to rebuild with minimal downtime you can search here for “two container.”

To restart rails you can use

 sv restart unicorn

But there’s other stuff you need to do to modify a plugin other than a pull.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.