diff options
| author | JP Appel <jeanpierre.appel01@gmail.com> | 2024-10-05 14:39:29 -0400 |
|---|---|---|
| committer | JP Appel <jeanpierre.appel01@gmail.com> | 2024-10-05 14:39:29 -0400 |
| commit | 621e78947eb1c4607ce8e6bf5ce133d4927b3cf2 (patch) | |
| tree | 68ec97f6bab3a68b16cc3c82ebee98caafc78ef6 | |
| parent | e8d9040688925304edad469d92518da84e1b8d96 (diff) | |
Update service to use correct templates
| -rw-r--r-- | Makefile | 7 | ||||
| -rw-r--r-- | nonsense-time.service | 1 |
2 files changed, 8 insertions, 0 deletions
@@ -1,5 +1,7 @@ BIN:= nonsense-time SERVICE:= nonsense-time.service +STATIC := ./static/ +TEMPLATES := ./templates/ .PHONY: all test clean build install info @@ -8,7 +10,12 @@ all: build build: $(BIN) install: $(BIN) + rm -rf /usr/local/share/nonsense-time cp $(BIN) /usr/bin + cp $(SERVICE) /etc/systemd/system/ + mkdir /usr/local/share/nonsense-time + cp -r $(STATIC) /usr/local/share/nonsense-time + cp -r $(TEMPLATES) /usr/local/share/nonsense-time test: go test ./... diff --git a/nonsense-time.service b/nonsense-time.service index 673f88a..9fe0227 100644 --- a/nonsense-time.service +++ b/nonsense-time.service @@ -3,6 +3,7 @@ Description=Nonsense Time backend After=nginx.service [Service] +WorkingDirectory=/usr/local/share/nonsense-time ExecStart=/usr/bin/nonsense-time -b 127.0.0.1 -p 1500 Type=simple Restart=on-failure |
