mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2026-02-08 16:16:18 +01:00
split maintenance tasks into bare metal / docker
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
# Discourse
|
||||
|
||||
## Prepare Your Settings
|
||||
## Setup Auth
|
||||
|
||||
### Prepare Your Settings File
|
||||
|
||||
In your auth project's settings file, do the following:
|
||||
|
||||
- Add `'allianceauth.services.modules.discourse',` to your `INSTALLED_APPS` list
|
||||
- Append the following to your local.py settings file:
|
||||
- Add `'allianceauth.services.modules.discourse',` to `INSTALLED_APPS` in your `local.py`
|
||||
- Append the following to your `local.py` settings file:
|
||||
|
||||
```python
|
||||
# Discourse Configuration
|
||||
@@ -15,6 +17,32 @@ DISCOURSE_API_KEY = ''
|
||||
DISCOURSE_SSO_SECRET = ''
|
||||
```
|
||||
|
||||
### Preparing Auth
|
||||
|
||||
Before continuing, it is essential to perform Django Maintenance and restart our Web Service and Workers.
|
||||
|
||||
::::{tabs}
|
||||
:::{group-tab} Bare Metal
|
||||
|
||||
```shell
|
||||
python manage.py migrate
|
||||
python manage.py collectstatic --noinput
|
||||
supervisorctl restart myauth:
|
||||
```
|
||||
|
||||
:::
|
||||
:::{group-tab} Containerized
|
||||
|
||||
```shell
|
||||
docker compose --env-file=.env up -d
|
||||
docker compose exec allianceauth_gunicorn bash
|
||||
auth migrate
|
||||
auth collectstatic
|
||||
```
|
||||
|
||||
:::
|
||||
::::
|
||||
|
||||
## Install Docker
|
||||
|
||||
```shell
|
||||
|
||||
Reference in New Issue
Block a user