Preserve production website unit with deployment drop-in
This commit is contained in:
1 parent
18216953e7
commit
ea3c288df7
4 files changed
+22
-32
No files matched your search
@@ -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
|
||||
@@ -0,0 +1,4 @@
|
||||
[Service]
|
||||
WorkingDirectory=/opt/autolibrary/current
|
||||
ExecStart=
|
||||
ExecStart=/opt/autolibrary/current/webserver start --config /opt/autolibrary/shared/config.json
|
||||
Reference in new issue
Block a user