Lynchburg Server
This is a web2py application (python3) http://www.web2py.com/init/default/download
Installation:
- Make sure python3 is installed on your system and in your $PATH
- Download web2py (the latest "source code" version for "normal users") and extract it.
- Start web2py
- Log-In with your specified admin password
- Create a web2py 'application' by cloning this repository
You will also need to install the python module tornado
Websockets
To communicate with the WebClients directly the server uses websockets. To make this communication works, you have to also start the websocket server that web2py comes with and run it on port 8888
. If you do not run the websockets server, the application will mostly function but no push packets will be send to clients and you have to manually refresh the site everytime. This is how you can do it:
- Copy the
websocket_messaging.py
into the root folder of web2py (The same folder web2py.py is in. NOT your application root folder)cp ./gluon/contrib/websocket_messaging.py ./
- Run the websocket server seperate to web2py using:
python ./websocket_messaging.py -k <KEY> -p 8888
67c371fd204fbcbf9742310d1a9d951bcca1aa86
- If you run web2py with https enabled, you MUST also provide the Certificate to the websockets server (Provide the path). More help via:
python ./websocket_messaging.py --help