Mercurial > kallithea
comparison docs/setup.rst @ 683:341beaa9edba beta
Implemented whoosh index building as paster command.
docs update
fixed manifest.in for missing yui file.
Fixed setup to beta
added base for paster upgrade-db command
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 13 Nov 2010 02:29:46 +0100 |
parents | 53128b6b9a4d |
children | 1105531ae572 |
comparison
equal
deleted
inserted
replaced
682:23c2a0e6df0b | 683:341beaa9edba |
---|---|
39 - Use admin account you created to login. | 39 - Use admin account you created to login. |
40 - Default permissions on each repository is read, and owner is admin. So | 40 - Default permissions on each repository is read, and owner is admin. So |
41 remember to update these if needed. | 41 remember to update these if needed. |
42 | 42 |
43 | 43 |
44 Setting up Whoosh | 44 Setting up Whoosh full text search |
45 ----------------- | 45 ---------------------------------- |
46 | |
47 Index for whoosh can be build starting from version 1.1 using paster command | |
48 passing repo locations to index, as well as Your config file that stores | |
49 whoosh index files locations. There is possible to pass `-f` to the options | |
50 to enable full index rebuild. Without that indexing will run always in in | |
51 incremental mode. | |
52 | |
53 :: | |
54 paster make-index --repo-location=<location for repos> production.ini | |
55 | |
56 for full index rebuild You can use | |
57 | |
58 :: | |
59 paster make-index -f --repo-location=<location for repos> production.ini | |
46 | 60 |
47 - For full text search You can either put crontab entry for | 61 - For full text search You can either put crontab entry for |
48 | 62 |
63 This command can be run even from crontab in order to do periodical | |
64 index builds and keep Your index always up to date. An example entry might | |
65 look like this | |
66 | |
49 :: | 67 :: |
50 | 68 |
51 python /var/www/rhodecode/<rhodecode_installation_path>/lib/indexers/daemon.py incremental <put_here_path_to_repos> | 69 /path/to/python/bin/paster --repo-location=<location for repos> /path/to/rhodecode/production.ini |
52 | 70 |
53 When using incremental mode whoosh will check last modification date of each file | 71 When using incremental(default) mode whoosh will check last modification date |
54 and add it to reindex if newer file is available. Also indexing daemon checks | 72 of each file and add it to reindex if newer file is available. Also indexing |
55 for removed files and removes them from index. Sometime You might want to rebuild | 73 daemon checks for removed files and removes them from index. |
56 index from scrach, in admin pannel You can check `build from scratch` flag | 74 |
57 and in standalone daemon You can pass `full` instead on incremental to build | 75 Sometime You might want to rebuild index from scratch. You can do that using |
58 remove previos index and build new one. | 76 the `-f` flag passed to paster command or, in admin panel You can check |
77 `build from scratch` flag. | |
59 | 78 |
60 Nginx virtual host example | 79 Nginx virtual host example |
61 -------------------------- | 80 -------------------------- |
62 | 81 |
63 Sample config for nginx:: | 82 Sample config for nginx:: |