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
+14
View File
@@ -0,0 +1,14 @@
[Unit]
Description=PBT: import the Austrian stop list into the database
# Postgres runs on a separate host, so just wait for the network.
Wants=network-online.target
After=network-online.target
[Service]
Type=oneshot
User=www-data
WorkingDirectory=/opt/pbt
# Same secrets file as pbt.service - gives the import command PBT_DATABASE_URL.
EnvironmentFile=/etc/pbt/pbt.env
Environment=FLASK_APP=app.py
ExecStart=/opt/pbt/venv/bin/flask import-stops