mirror of
https://codeberg.org/Mo8it/AdvLabDB.git
synced 2024-12-20 23:41:20 +00:00
Update server_setup.adoc with systemd restart
This commit is contained in:
parent
ce532e8383
commit
6d73abfba5
1 changed files with 16 additions and 15 deletions
|
@ -65,20 +65,6 @@ Fill the secrets generated using the last script into `.env`.
|
||||||
|
|
||||||
Enter your SERVER_NAME in `.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:
|
List all available timezones:
|
||||||
[source,bash]
|
[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
|
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
|
== Stop ssh to root
|
||||||
// TODO: Add blocking password access
|
// TODO: Add blocking password access
|
||||||
|
|
Loading…
Reference in a new issue