Files
pbt/pbt-import-stops.service
zisco 158311a329
Deploy PBT / deploy (push) Failing after 16s
Init stops-import, DB-Env
2026-09-10 21:58:22 +02:00

15 lines
447 B
Desktop File

[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