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.
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user