Add deployment info
parent
9209cd077a
commit
a0fe68adf1
|
@ -0,0 +1,10 @@
|
|||
# stay sane, sir. just all the more important steps.
|
||||
|
||||
adduser bitvend --system --home /var/bitvend
|
||||
apt install pigpiod
|
||||
systemctl enable pigpiod
|
||||
systemctl start pigpiod
|
||||
cp bitvend.service /etc/systemd/system
|
||||
pip install -r /var/bitvend/requirements.txt
|
||||
systemctl enable bitvend
|
||||
systemctl start bitvend
|
|
@ -0,0 +1,13 @@
|
|||
[Unit]
|
||||
Description=bitvend service
|
||||
After=pigpiod.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=bitvend
|
||||
WorkingDirectory=/var/bitvend
|
||||
ExecStart=/usr/bin/python3 -u /var/bitvend/bitvend.py
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Reference in New Issue