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