frontend overhaul, minor backend bugfixes

This commit is contained in:
katsu 2025-07-02 16:29:09 +02:00
parent acc38950e7
commit c1325c0eda
28 changed files with 767 additions and 481 deletions

View file

@ -1,9 +1,12 @@
- name: Test playbook
vars:
# TODO: maybe don't hardcode this?
PROJECT_BASE: "/home/kat/Documents/polzp/fri_multimedia_rework"
hosts: P01
# vars_files:
# - secret
vars:
# addr: "192.168.122.245"
handlers:
@ -185,19 +188,24 @@
backup: yes
- name: Build frontend
delegate_to: localhost
command:
chdir: "{{PROJECT_BASE}}/frontend/vju_display/"
cmd: "npm run build"
- name: copy frontend to webroot
become: true
ansible.builtin.copy:
src: /home/kat/Documents/polzp/fri_multimedia_rework/frontend/vju_display/dist/
#src: /home/kat/fri_multimedia_rework/frontend/vju_display/dist
#remote_src: true
#dest: /srv/www
src: "{{PROJECT_BASE}}/frontend/vju_display/dist/"
dest: /var/www/html/
#dest: /home/kat/testoa
owner: root
group: root
group: www-data
mode: '0755'
backup: yes
- name: daemon reload
become: true
ansible.builtin.systemd_service:
daemon_reload: true

View file

@ -3,7 +3,7 @@ Description={{ script_file }}
After=multi-user.target
[Service]
ExecStart=/usr/local/bin/poetry run python3 {{ script_file }}
ExecStart=/usr/local/bin/poetry run python3 -u {{ script_file }}
Type=simple
Restart=always
User=pi