38 lines
868 B
Markdown
38 lines
868 B
Markdown
# Willkommen
|
|
wise 2023 / 24
|
|
|
|
## Augabenstellung
|
|
Bau eines Hausaufgaben Robos
|
|
|
|
|
|
## Ziel
|
|
* Repo für die Raspis, um python progrämmchen zu pflegen, warten, ...
|
|
* Repo für die Apache-Config, um Webdienst zu veröffentlichen
|
|
* Repo für die Web-App, um den Vokabeltester / Mathe-Checker zu starten.
|
|
|
|
## Links
|
|
|
|
|
|
## Configs
|
|
Das Unit file für einen quiz Service (auf Gunicorn Basis)
|
|
|
|
* vi /etc/systemd/system/quiz.service
|
|
|
|
~~~
|
|
[Unit]
|
|
Description=Gunicorn instance to serve quiz
|
|
After=network.target
|
|
|
|
[Service]
|
|
User=kico
|
|
Group=www-data
|
|
WorkingDirectory=/home/kico/git/robotik-wise23/quiz
|
|
#Environment="PATH=/home/sammy/myproject/myprojectenv/bin"
|
|
#ExecStart=/home/sammy/myproject/myprojectenv/bin/gunicorn --workers 3 --bind unix:myproject.sock -m 007 wsgi:app
|
|
ExecStart=/usr/bin/gunicorn --workers 1 --bind 0.0.0.0:8000 quiz:app
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
~~~
|
|
|