|
a/README.rst |
|
b/README.rst |
|
... |
|
... |
38 |
|
38 |
|
39 |
Run standalone
|
39 |
Run standalone
|
40 |
--------------
|
40 |
--------------
|
41 |
Run ``webui-standalone.py`` and connect to ``http://localhost:8080``.
|
41 |
Run ``webui-standalone.py`` and connect to ``http://localhost:8080``.
|
42 |
|
42 |
|
43 |
There's some optional command-line arguments available:::
|
43 |
There's some optional command-line arguments available::
|
44 |
|
44 |
|
45 |
-h, --help show this help message and exit
|
45 |
-h, --help show this help message and exit
|
46 |
-a ADDR, --addr ADDR address to bind to [127.0.0.1]
|
46 |
-a ADDR, --addr ADDR address to bind to [127.0.0.1]
|
47 |
-p PORT, --port PORT port to listen on [8080]
|
47 |
-p PORT, --port PORT port to listen on [8080]
|
48 |
|
48 |
|
49 |
Run as WSGI/CGI
|
49 |
Run as WSGI/CGI
|
50 |
---------------
|
50 |
---------------
|
51 |
TODO
|
51 |
|
|
|
52 |
Example WSGI/Apache2 config::
|
|
|
53 |
|
|
|
54 |
WSGIDaemonProcess recoll user=recoll group=recoll threads=5 display-name=%{GROUP} python-path=/var/recoll-webui-master
|
|
|
55 |
WSGIScriptAlias /recoll /var/recoll-webui-master/webui-wsgi.py
|
|
|
56 |
<Directory /var/recoll-webui-master>
|
|
|
57 |
WSGIProcessGroup recoll
|
|
|
58 |
Order allow,deny
|
|
|
59 |
allow from all
|
|
|
60 |
</Directory>
|
|
|
61 |
|
|
|
62 |
Remarks:
|
|
|
63 |
* Without "python-path=" you might see errors that it can't import webui
|
|
|
64 |
* Run the WSGIDeamonProcess run under the username (user=xyz) of the user that you want to have exposed via web
|
|
|
65 |
|
|
|
66 |
|
|
|
67 |
Example Upstart-Script for Ubuntu to run the indexer as daemon::
|
|
|
68 |
|
|
|
69 |
|
|
|
70 |
description "recoll indexer"
|
|
|
71 |
|
|
|
72 |
start on runlevel [2345]
|
|
|
73 |
stop on runlevel [!2345]
|
|
|
74 |
|
|
|
75 |
respawn
|
|
|
76 |
|
|
|
77 |
pre-start script
|
|
|
78 |
exec sudo -u recoll sh -c "/usr/local/share/recoll/examples/rclmon.sh start"
|
|
|
79 |
end script
|
|
|
80 |
|
|
|
81 |
pre-stop script
|
|
|
82 |
exec sudo -u recoll sh -c "/usr/local/share/recoll/examples/rclmon.sh stop"
|
|
|
83 |
end script
|
|
|
84 |
|
|
|
85 |
Remarks:
|
|
|
86 |
* You need to configure the user for which the indexer should run ("sudo -u [myuser])
|
|
|
87 |
|
|
|
88 |
|
|
|
89 |
Example Crontab entry to have the indexer at least once a day::
|
|
|
90 |
|
|
|
91 |
22 5 * * * recoll recollindex
|
|
|
92 |
|
52 |
|
93 |
|
53 |
|
94 |
|
54 |
Issues
|
95 |
Issues
|
55 |
======
|
96 |
======
|
56 |
|
97 |
|