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
|
./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/
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user