1
0
Fork 0
mirror of https://codeberg.org/Mo8it/AdvLabDB.git synced 2024-11-08 21:21:06 +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 cd ~/advlabdb
---- ----
.. Nginx configuration .. Settings
... Copy the template for the Nginx configuration: ... Copy the example file for the settings:
+ +
[source,bash] [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. ... Enter your SERVER_NAME in `settings.ini`.
.. 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`.
.. Timezone .. Timezone
@ -137,14 +117,7 @@ cd ~/advlabdb
+ +
[source,bash] [source,bash]
---- ----
poetry run python3 -m advlabdb.scripts.setup.init_database poetry run python3 manage.py setup initialize-database
----
.. Restart the gunicorn service:
+
[source,bash]
----
sudo systemctl restart gunicorn
---- ----
.. *Done!* Now go to your SERVER_NAME using a browser to verify that everything is working. .. *Done!* Now go to your SERVER_NAME using a browser to verify that everything is working.