mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-30 18:13:23 +08:00
Merge pull request #4567 from martenson/index-refresh-logging
add logging to ts index building
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
"""
|
||||
Build indexes for searching the TS.
|
||||
Run this script from the Tool Shed folder, example:
|
||||
Build indexes for searching the Tool Shed.
|
||||
Run this script from the root folder, example:
|
||||
|
||||
$ python scripts/tool_shed/build_ts_whoosh_index.py -c config/tool_shed.ini
|
||||
|
||||
@@ -8,10 +8,10 @@ Make sure you adjusted your config to:
|
||||
* turn on searching via toolshed_search_on
|
||||
* specify whoosh_index_dir where the indexes will be placed
|
||||
|
||||
Also make sure that GALAXY_EGGS_PATH variable is properly set
|
||||
in case you are using non-default location for Galaxy.
|
||||
This script expects the Tool Shed's runtime virtualenv to be active.
|
||||
"""
|
||||
import ConfigParser
|
||||
import logging
|
||||
import os
|
||||
import sys
|
||||
from optparse import OptionParser
|
||||
@@ -21,6 +21,8 @@ from whoosh.filedb.filestore import FileStorage
|
||||
|
||||
sys.path.insert(1, os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir, os.pardir, 'lib')))
|
||||
|
||||
logging.basicConfig(level='DEBUG')
|
||||
|
||||
import galaxy.webapps.tool_shed.model.mapping
|
||||
from galaxy.tools.loader_directory import load_tool_elements_from_path
|
||||
from galaxy.util import directory_hash_id, pretty_print_time_interval
|
||||
|
||||
Reference in New Issue
Block a user