1
0
Fork 0
mirror of https://codeberg.org/Mo8it/AdvLabDB.git synced 2024-09-17 18:31:15 +00:00

Adjust docs

This commit is contained in:
Mo 2022-08-08 22:52:02 +02:00
parent d362820c3c
commit 693e72f4c0

View file

@ -55,36 +55,16 @@ ssh admin@SERVER_NAME
cd ~/advlabdb
----
.. Nginx configuration
.. Settings
... Copy the template for the Nginx configuration:
... Copy the example file for the settings:
+
[source,bash]
----
cp advlabdb/scripts/setup/advlabdb.conf.template advlabdb/scripts/setup/advlabdb.conf
cp settings_example.ini settings.ini
----
... Change `server_name` in `advlabdb/scripts/setup/advlabdb.conf` to your SERVER_NAME.
.. Environment variables
... Copy the template for the environment variables:
+
[source,bash]
----
cp .env.template .env
----
... Generate secrets for `.env`:
+
[source,bash]
----
python3 advlabdb/scripts/setup/generate_secrets.py
----
... Fill the secrets generated using the last script into `.env`.
... Enter your SERVER_NAME in `.env`.
... Enter your SERVER_NAME in `settings.ini`.
.. Timezone
@ -137,14 +117,7 @@ cd ~/advlabdb
+
[source,bash]
----
poetry run python3 -m advlabdb.scripts.setup.init_database
----
.. Restart the gunicorn service:
+
[source,bash]
----
sudo systemctl restart gunicorn
poetry run python3 manage.py setup initialize-database
----
.. *Done!* Now go to your SERVER_NAME using a browser to verify that everything is working.