Preserve production website unit with deployment drop-in

This commit is contained in:
KenanZhu committed 2026-11-04 10:18:24 +08:00
1 parent 18216953e7
commit ea3c288df7
4 files changed
+22 -32

No files matched your search

-19
View File
@@ -1,19 +0,0 @@
[Unit]
Description=AutoLibrary Website
After=network.target
[Service]
Type=exec
User=autolibrary
Group=autolibrary
WorkingDirectory=/opt/autolibrary/current
ExecStart=/opt/autolibrary/current/webserver start --config /opt/autolibrary/shared/config.json
Environment=GIN_MODE=release
UMask=0027
NoNewPrivileges=true
Restart=on-failure
RestartSec=5s
TimeoutStopSec=20s
[Install]
WantedBy=multi-user.target
+4
View File
@@ -0,0 +1,4 @@
[Service]
WorkingDirectory=/opt/autolibrary/current
ExecStart=
ExecStart=/opt/autolibrary/current/webserver start --config /opt/autolibrary/shared/config.json