blob: 4c7fe8271e15b1c2e440518f24337889b34593ad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
Requirements
============
- python-websocket-server (available here
https://github.com/Pithikos/python-websocket-server or via pip)
Installation of the Server
==========================
$ python setup.py build
$ [sudo] python setup.py install
Execution
=========
Start the python server (it will listen to any connection on port 1236)
$ chdir / && cao-server &
Installation of the web application
===================================
Configure your webserver to server the webapp/ directory (refer to the
documentation of your prefered webserver for that) or copy the content of the
webapp/ directory in a directory already served by your webserver.
Alternatively, if your version of php implements this, you can use this command
to run a simple webserver (this method is not recommended in a production
environment).
$ php -S "<listen_address>:<port>" -t webapp/
Replace <listen_address> and <port> by the values you prefer.
example:
$ php -S 0.0.0.0:8080 -t webapp/
|