summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPiotr Dobrowolski <admin@tastycode.pl>2017-01-20 22:48:03 +0100
committerPiotr Dobrowolski <admin@tastycode.pl>2017-01-20 22:48:03 +0100
commita0fe68adf153e67cf387aa2eb8f60277c6832758 (patch)
tree1cdc11a50abdf270d5758fc3efa196648c9ced08
parent9209cd077ac2b246b99196f42cae72ce4ebb22b5 (diff)
downloadbitvend-a0fe68adf153e67cf387aa2eb8f60277c6832758.tar.gz
bitvend-a0fe68adf153e67cf387aa2eb8f60277c6832758.tar.bz2
bitvend-a0fe68adf153e67cf387aa2eb8f60277c6832758.tar.xz
bitvend-a0fe68adf153e67cf387aa2eb8f60277c6832758.zip
Add deployment info
-rw-r--r--deployment/INSTALL10
-rw-r--r--deployment/bitvend.service13
2 files changed, 23 insertions, 0 deletions
diff --git a/deployment/INSTALL b/deployment/INSTALL
new file mode 100644
index 0000000..8a9e760
--- /dev/null
+++ b/deployment/INSTALL
@@ -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
diff --git a/deployment/bitvend.service b/deployment/bitvend.service
new file mode 100644
index 0000000..357bc7f
--- /dev/null
+++ b/deployment/bitvend.service
@@ -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