General discourse optimations

This commit is contained in:
Kevin Veen-Birkenbach 2025-05-13 09:11:28 +02:00
parent 23496f2fab
commit 24fb56845b
No known key found for this signature in database
GPG Key ID: 44D8F11FD62F878E
2 changed files with 7 additions and 5 deletions

View File

@ -13,5 +13,5 @@ pry(main)> SiteSetting.all.each { |setting| puts "#{setting.name}: #{setting.val
To reinitialize the container execute:
```bash
docker network connect discourse_default central-postgres && ./launcher rebuild discourse_application
docker network connect discourse_default central-postgres && /opt/docker/discourse/services/discourse_repository/launcher rebuild discourse_application
```

View File

@ -8,9 +8,11 @@
listen: recreate discourse
- name: "add central database temporary to {{application_id}}_default"
command:
cmd: "docker network connect {{applications.discourse.network}} central-{{ database_type }}"
ignore_errors: true
command: docker network connect {{applications.discourse.network}} central-{{ database_type }}
failed_when: >
result.rc != 0 and
'already exists in network' not in result.stderr
register: result
when: applications | is_feature_enabled('central_database', application_id)
listen: recreate discourse