Getting started hacking should be easy
authorMikael Frykholm <mikael@frykholm.com>
Wed, 19 Jul 2017 03:16:00 +0000 (05:16 +0200)
committerMikael Frykholm <mikael@frykholm.com>
Wed, 19 Jul 2017 03:16:00 +0000 (05:16 +0200)
README.md
friends/run.sh

index 48de2f6351fe8ad4dadb6d7f15d0b54543dcd3d3..415362ecb8bf5921ff75cbc63157774103ea69bc 100644 (file)
--- a/README.md
+++ b/README.md
@@ -1,7 +1,8 @@
 friends
 =======
+virtualenv -p python3 venv
+. venv/bin/activate
+pip3 install -e ./
 
-Ostatus app
-
-Generate self signed key with:
-openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -nodes -days 3650
+#optionally to run on port <1024
+sudo setcap cap_net_bind_service=+ep venv/bin/python3
index 6aa607b46d32cb69bba3f52eb9f55aa6cebac854..60059283353acd3c2be4dd7d0f7ce56b3eb5c21b 100755 (executable)
@@ -1,2 +1,3 @@
 #!/bin/bash
-sudo python3 server.py --logging=debug
+#setcap 'cap_net_bind_service=+ep' /path/to/program
+python3 server.py --logging=debug