Init stops-import, DB-Env
Deploy PBT / deploy (push) Failing after 16s

This commit is contained in:
2026-09-10 21:58:22 +02:00
parent 2a6e9c690b
commit 158311a329
6 changed files with 50 additions and 10 deletions
+4 -1
View File
@@ -31,7 +31,7 @@ jobs:
--exclude '__pycache__' \
./ deploy@pbt:/opt/pbt/
- name: Abhängigkeiten installieren & Service neu starten
- name: Abhängigkeiten installieren, Haltestellen importieren & Service neu starten
run: |
ssh deploy@pbt '
set -e
@@ -40,4 +40,7 @@ jobs:
source venv/bin/activate
pip install -q -r requirements.txt
sudo /usr/bin/systemctl restart pbt
# oneshot unit: reads /etc/pbt/pbt.env for PBT_DATABASE_URL,
# runs "flask import-stops" (idempotent upsert of data/stops_at.csv.gz)
sudo /usr/bin/systemctl start pbt-import-stops.service
'