Add deployment info

v2
informatic 2017-01-20 22:48:03 +01:00
parent 9209cd077a
commit a0fe68adf1
2 changed files with 23 additions and 0 deletions

10
deployment/INSTALL Normal file
View File

@ -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

View File

@ -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