summaryrefslogtreecommitdiff
path: root/readme.txt
blob: 33eb3a5a1f67c1b7dad951695bb3905a4ca6a115 (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
38
39
Deploy
======

Requirements
------------

- apache2
- python3-falcon
- python3-ply
- python3-psycopg2
- 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_relations', 'sister_2')
>>> ...