forked from hswaw/hscloud
hswaw/checkinator: update README
Change-Id: Ib3c92c1b707d9effe566e219cc5d65d850a91ab3 Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1241 Reviewed-by: q3k <q3k@hackerspace.pl>master
parent
bd124bd066
commit
2afcbddf6a
|
@ -2,6 +2,9 @@
|
|||
uses dhcpd.leases file to track MAC adressess of devices connected to hs LAN
|
||||
network.
|
||||
|
||||
This is running on `customs` machine. Go to
|
||||
``hswaw/machines/customs.hackerspace.pl`` to see how it is deployed.
|
||||
|
||||
.. _Warsaw Hackerspace: https://hackerspace.pl
|
||||
|
||||
Setup
|
||||
|
@ -9,24 +12,25 @@ Setup
|
|||
.. code:: bash
|
||||
|
||||
cp config.yaml.dist config.yaml
|
||||
cp web-config.yaml.dist web-config.yaml
|
||||
|
||||
# edit config file using your favourite editor
|
||||
# edit config files using your favourite editor
|
||||
$EDITOR config.yaml
|
||||
$EDITOR web-config.yaml
|
||||
|
||||
# create new database file (or copy existing one)
|
||||
sqlite3 at.db < dbsetup.sql
|
||||
|
||||
# create python virtual environment
|
||||
python3 -m venv vevnv
|
||||
./venv/bin/python3 -m pip install -r requirements
|
||||
./venv/bin/python3 -m pip install gunicorn
|
||||
# build
|
||||
nix-build ../../default.nix -A hswaw.checkinator
|
||||
|
||||
Running
|
||||
-------
|
||||
.. code:: bash
|
||||
|
||||
./venv/bin/gunicorn run:app
|
||||
# run tracker
|
||||
./result/bin/checkinator-tracker config.yaml
|
||||
|
||||
When running on OpenBSD make sure to pass '--no-sendfile' argument to gunicorn
|
||||
command. This will prevent AttributeError on os.sendfile that seems to be
|
||||
missing in this marvelous OS-es python3 stdlib.
|
||||
# run web interface
|
||||
# TODO: fix running debug entry point from nix build
|
||||
./result/bin/checkinator-web-debug
|
||||
|
|
|
@ -1,17 +0,0 @@
|
|||
blinker==1.4
|
||||
certifi==2017.7.27.1
|
||||
chardet==3.0.4
|
||||
click==6.7
|
||||
Flask==0.12.2
|
||||
Flask-Login==0.4.0
|
||||
Flask-OAuthlib==0.9.4
|
||||
-e git+https://code.hackerspace.pl/informatic/flask-spaceauth@4dd1c63912297d499dcd5631879e45dc6aa1819d#egg=Flask_SpaceAuth
|
||||
idna==2.6
|
||||
itsdangerous==0.24
|
||||
Jinja2==2.9.6
|
||||
MarkupSafe==1.0
|
||||
oauthlib==2.0.4
|
||||
requests==2.18.4
|
||||
requests-oauthlib==0.8.0
|
||||
urllib3==1.22
|
||||
Werkzeug==0.12.2
|
Loading…
Reference in New Issue