From 7962a37322cba2090be4dd6e8eccec6479811ed9 Mon Sep 17 00:00:00 2001 From: arsam Date: Fri, 18 Sep 2026 23:21:04 +0330 Subject: [PATCH] Import deployment configuration: app/deploy/systemd/teknav-migrate.service Import the existing local project snapshot. This commit organizes existing files; it does not represent newly developed functionality. --- app/deploy/systemd/teknav-migrate.service | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 app/deploy/systemd/teknav-migrate.service diff --git a/app/deploy/systemd/teknav-migrate.service b/app/deploy/systemd/teknav-migrate.service new file mode 100644 index 0000000..ee6b781 --- /dev/null +++ b/app/deploy/systemd/teknav-migrate.service @@ -0,0 +1,18 @@ +[Unit] +Description=Run Teknav database migrations +After=postgresql.service + +[Service] +Type=oneshot +User=teknav +Group=teknav +WorkingDirectory=/opt/teknav/current/backend +EnvironmentFile=/etc/teknav/backend.env +ExecStart=/usr/bin/npm run prisma:apply +NoNewPrivileges=true +PrivateTmp=true +ProtectSystem=full +ProtectHome=true + +[Install] +WantedBy=multi-user.target