Allow starting khoj in non-GUI mode without config file instantiated

- Start khoj server (in non-GUI mode) without needing config file
  already instantiated.
  - But throw warning to configure khoj to use it
- This allows plugins to configure the app via the /config/data APIs
- To be used by the Khoj obsidian plugin to configure markdown content
  in khoj
This commit is contained in:
Debanjum Singh Solanky
2023-01-03 21:36:59 -03:00
parent 52664dd96c
commit 9d31988f42
2 changed files with 3 additions and 2 deletions

View File

@@ -77,7 +77,7 @@ def run():
# Setup task scheduler
poll_task_scheduler()
# Start Server
configure_server(args, required=True)
configure_server(args, required=False)
start_server(app, host=args.host, port=args.port, socket=args.socket)
else:
# Setup GUI