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

Update server_setup.adoc with systemd restart

This commit is contained in:
Mo 2022-05-17 14:25:51 +02:00
parent ce532e8383
commit 6d73abfba5

View file

@ -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