kopia lustrzana https://github.com/reiver/greatape
chore: ⚗️ add systemd service template
rodzic
76227214d7
commit
4f7c32297e
|
@ -0,0 +1,17 @@
|
|||
[Unit]
|
||||
Description=GreatApe
|
||||
ConditionPathExists=/path/to/app
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=greatape
|
||||
Group=greatape
|
||||
WorkingDirectory=/path/to/app
|
||||
ExecStart=/usr/local/go/bin/go run .
|
||||
Environment="PORT=8080"
|
||||
Environment="PROTOCOL=https"
|
||||
Environment="DOMAIN=example.social"
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Ładowanie…
Reference in New Issue