Skip to content
Snippets Groups Projects
Commit b03883cb authored by roadscape's avatar roadscape
Browse files

clean up cli usage #49

parent c5bba911
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,8 @@ from hive.indexer.core import run_sync
from hive.server.serve import run_server
def run():
"""Main CLI service router"""
Conf.init_argparse()
mode = Conf.run_mode()
......
......@@ -2,4 +2,4 @@
POPULATE_CMD="$(which hive)"
python3 /app/hive/run.py server --database-url="${DATABASE_URL}" --http-server-port="${HTTP_SERVER_PORT}"
exec "${POPULATE_CMD}" server
......@@ -37,6 +37,6 @@ setup(
],
entry_points={
'console_scripts': [
'hive=run:run',
'hive=hive.cli:run',
]
})
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment