summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@araneo.org>2015-08-25 18:24:48 +0200
committerTimotej Lazar <timotej.lazar@araneo.org>2015-08-25 18:24:48 +0200
commitbb7886143bbc05952679640db34315ef2d831e04 (patch)
tree435706d2ca5f82015f4bdf63dc51cf6e0bb63ccd
parent88a5cd83b47a9dfb5a832936095c7b99ce0d8179 (diff)
Update readme
-rw-r--r--readme.txt39
1 files changed, 36 insertions, 3 deletions
diff --git a/readme.txt b/readme.txt
index 6f92562..4c902c3 100644
--- a/readme.txt
+++ b/readme.txt
@@ -1,6 +1,39 @@
-Python3 packages required:
+Deploy
+======
+
+Requirements
+------------
+
+- apache2
+- python3-falcon
- python3-ply
-- python3-termcolor
- python3-psycopg2
-- python3-falcon
+- python3-termcolor
+- python3-waitress
+- swi-prolog-nox
+
+Settings
+--------
+
+- copy files from codeq-web to webroot
+- set up reverse proxy for /svc/ to wsgi server
+ ProxyPass /svc/ http://localhost:8082/
+ ProxyPassReverse /svc/ http://localhost:8082/
+- set _path_prefix in server.problems
+- set DB settings in db
+
+Run
+---
+
+- start prolog/runner/main.pl
+- start daemon.py
+- start wsgi_server.py
+
+
+Debugging
+=========
+>>> import server
+>>> session = server.user_session.authenticate_and_create_session(user, pass)
+>>> session.get_problem_data('prolog', 'family_relationss', 'sister_2')
+>>> ...