mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-30 23:38:13 +02:00
Huge role refactoring/cleanup. Other commits will propably follow. Because some bugs will exist. Still important for longrun and also for auto docs/help/slideshow generation
This commit is contained in:
27
roles/web-app-discourse/Administration.md
Normal file
27
roles/web-app-discourse/Administration.md
Normal file
@@ -0,0 +1,27 @@
|
||||
# Administration Notes
|
||||
|
||||
## Check configuration
|
||||
|
||||
```bash
|
||||
./launcher enter application
|
||||
pry(main)> SiteSetting.all.each { |setting| puts "#{setting.name}: #{setting.value}" }
|
||||
```
|
||||
---
|
||||
|
||||
## Reinitialize Container
|
||||
|
||||
To reinitialize the container execute:
|
||||
|
||||
```bash
|
||||
docker network connect discourse_default central-postgres && /opt/docker/discourse/services/discourse_repository/launcher rebuild discourse_application
|
||||
```
|
||||
|
||||
### 🔍 Logging with `journalctl`
|
||||
|
||||
All build actions triggered by this role are logged to the system journal using `systemd-cat`. Output is simultaneously shown in the terminal and available via `journalctl`.
|
||||
|
||||
To view logs for a specific application:
|
||||
|
||||
```bash
|
||||
journalctl -t rebuild-discourse -f
|
||||
```
|
Reference in New Issue
Block a user