From 6d73abfba5c5e9b76569650c4a6fb8ad08589d17 Mon Sep 17 00:00:00 2001 From: Mo8it Date: Tue, 17 May 2022 14:25:51 +0200 Subject: [PATCH] Update server_setup.adoc with systemd restart --- docs/user_docs/server_setup.adoc | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/docs/user_docs/server_setup.adoc b/docs/user_docs/server_setup.adoc index d345bf6..2606471 100644 --- a/docs/user_docs/server_setup.adoc +++ b/docs/user_docs/server_setup.adoc @@ -65,20 +65,6 @@ Fill the secrets generated using the last script into `.env`. Enter your SERVER_NAME in `.env`. -Run the following: - -[source,bash] ----- -# Run server setup script -python3 advlabdb/scripts/setup/server_setup.py ----- - -After reboot: - -[source,bash] ----- -poetry run python3 -m advlabdb.scripts.setup.init_database ----- List all available timezones: [source,bash] @@ -101,7 +87,22 @@ Edit the file `/etc/hosts` with `sudo` such that the first two lines are: 127.0.1.1 SERVER_NAME SERVER_NAME_WITHOUT_DOMAIN ---- -Reboot again and go to your SERVER_NAME from the browser. +Run server setup script: +[source,bash] +---- +python3 advlabdb/scripts/setup/server_setup.py +---- + +After reboot: + +[source,bash] +---- +cd ~/advlabdb +poetry run python3 -m advlabdb.scripts.setup.init_database +sudo systemctl restart gunicorn +---- + +Now go to your SERVER_NAME from the browser. == Stop ssh to root // TODO: Add blocking password access