-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
483 additions
and
262 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
# biothings | ||
biothings[web_extra]==0.9.1 | ||
elasticsearch==6.3.1 | ||
elasticsearch-dsl==6.3.1 | ||
git+git://github.com/biothings/[email protected]#egg=biothings[web_extra] | ||
|
||
# for sentry monitoring | ||
raven |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
from tornado.web import StaticFileHandler, RedirectHandler | ||
|
||
from biothings.web.index_base import main | ||
from biothings.web.launcher import main | ||
from web.beacon.handlers import BeaconHandler, BeaconInfoHandler | ||
|
||
if __name__ == "__main__": | ||
main([ | ||
(r"/", RedirectHandler, {"url": "/standalone", "permanent": False}), # override default frontpage | ||
(r"/demo/?()", StaticFileHandler, {"path": "docs/demo", "default_filename": "index.html"}), | ||
(r"/standalone/?()", StaticFileHandler, {"path": "docs/standalone", "default_filename": "index.html"}), | ||
# override default frontpage | ||
(r"/", RedirectHandler, {"url": "/standalone", "permanent": False}), | ||
(r"/demo/?()", StaticFileHandler, | ||
{"path": "docs/demo", "default_filename": "index.html"}), | ||
(r"/standalone/?()", StaticFileHandler, | ||
{"path": "docs/standalone", "default_filename": "index.html"}), | ||
(r"/beacon/query?", BeaconHandler), | ||
(r"/beacon/info", BeaconInfoHandler), | ||
]) |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
|
||
""" | ||
Config file to run tests for MyVariant.info | ||
""" | ||
import os as _os | ||
import importlib.util as _imp_util | ||
|
||
CONFIG_FILE_NAME = "config_web.py" | ||
|
||
# find the path of the config file | ||
_cfg_path = _os.path.abspath(_os.path.join(_os.path.curdir, CONFIG_FILE_NAME)) | ||
while True: | ||
if _os.path.exists(_cfg_path): | ||
break | ||
_new_path = _os.path.abspath(_os.path.join( | ||
_os.path.join(_os.path.dirname(_cfg_path), _os.path.pardir), | ||
CONFIG_FILE_NAME) | ||
) | ||
if _new_path == _cfg_path: | ||
raise Exception(f"no config file {CONFIG_FILE_NAME} found") | ||
else: | ||
_cfg_path = _new_path | ||
|
||
# load config file using path | ||
_spec = _imp_util.spec_from_file_location("parent_config", _cfg_path) | ||
_config = _imp_util.module_from_spec(_spec) | ||
_spec.loader.exec_module(_config) | ||
|
||
# put the config variables into the module namespace | ||
for _k, _v in _config.__dict__.items(): | ||
if not _k.startswith('_'): | ||
globals()[_k] = _v | ||
|
||
# cleanup | ||
del CONFIG_FILE_NAME | ||
|
||
# override default | ||
ES_HOST = 'localhost:9200' | ||
ES_INDICES = { | ||
None: 'mvtest_hg19', | ||
'variant': 'mvtest_hg19', | ||
'hg19': 'mvtest_hg19', | ||
'hg38': 'mvtest_hg38' | ||
} | ||
ES_ARGS = { | ||
'timeout': 120, | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.