mirror of
https://github.com/stevenhowes/dorset-binformation.git
synced 2026-05-26 15:53:28 +01:00
Sort instructions and setup bits
This commit is contained in:
@@ -23,7 +23,7 @@ run: build
|
||||
./dorset-binformation
|
||||
.PHONY:run
|
||||
|
||||
install: build
|
||||
install:
|
||||
mkdir -p /opt/dorset-binformation/
|
||||
useradd dorset-binformation || true
|
||||
chown dorset-binformation:dorset-binformation /opt/dorset-binformation/
|
||||
|
||||
@@ -4,9 +4,12 @@ A data scraper for the Dorset Council bin collection site for bin collection dat
|
||||
|
||||
# Installation
|
||||
````
|
||||
go get -v github.com/stevenhowes/dorset-binformation/
|
||||
make install
|
||||
service dorset-binformation start
|
||||
wget https://github.com/stevenhowes/dorset-binformation/archive/refs/heads/main.zip
|
||||
unzip main.zip
|
||||
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
|
||||
|
||||
@@ -7,7 +7,7 @@ Type=simple
|
||||
User=dorset-binformation
|
||||
Group=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
|
||||
RestartSec=10
|
||||
StandardOutput=syslog
|
||||
|
||||
Reference in New Issue
Block a user