Sort instructions and setup bits

This commit is contained in:
Steve Howes
2024-04-10 21:47:18 +01:00
parent f3b7c2bedb
commit 50254e973b
3 changed files with 8 additions and 5 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ run: build
./dorset-binformation ./dorset-binformation
.PHONY:run .PHONY:run
install: build install:
mkdir -p /opt/dorset-binformation/ mkdir -p /opt/dorset-binformation/
useradd dorset-binformation || true useradd dorset-binformation || true
chown dorset-binformation:dorset-binformation /opt/dorset-binformation/ chown dorset-binformation:dorset-binformation /opt/dorset-binformation/
+6 -3
View File
@@ -4,9 +4,12 @@ A data scraper for the Dorset Council bin collection site for bin collection dat
# Installation # Installation
```` ````
go get -v github.com/stevenhowes/dorset-binformation/ wget https://github.com/stevenhowes/dorset-binformation/archive/refs/heads/main.zip
make install unzip main.zip
service dorset-binformation start cd dorset-binformation-main
make
sudo install
sudo service dorset-binformation start
```` ````
Edit /etc/systemd/system/dorset-binformation.service if an alternate port is required Edit /etc/systemd/system/dorset-binformation.service if an alternate port is required
+1 -1
View File
@@ -7,7 +7,7 @@ Type=simple
User=dorset-binformation User=dorset-binformation
Group=dorset-binformation Group=dorset-binformation
WorkingDirectory=/opt/dorset-binformation/ WorkingDirectory=/opt/dorset-binformation/
ExecStart=/opt/dorset-binformation/dorset-binformation --port localhost:9090 ExecStart=/opt/dorset-binformation/dorset-binformation --port localhost:8998
Restart=on-failure Restart=on-failure
RestartSec=10 RestartSec=10
StandardOutput=syslog StandardOutput=syslog