Skip to content

Commit

Permalink
Merge pull request #39 from shashank-boyapally/port-change
Browse files Browse the repository at this point in the history
port change for daemon mode
  • Loading branch information
vishnuchalla authored Jun 5, 2024
2 parents 870273c + 9e010a9 commit e23da0d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions orion.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,16 @@ def cmd_analysis(**kwargs):

@cli.command(name="daemon")
@click.option("--debug", default=False, is_flag=True, help="log level")
def rundaemon(debug):
@click.option("--port", default=8080, help="set port")
def rundaemon(debug, port):
"""
Orion runs on daemon mode on port 8000
Orion runs on daemon mode
\b
"""
level = logging.DEBUG if debug else logging.INFO
logger_instance = SingletonLogger(debug=level).logger
logger_instance.info("🏹 Starting Orion in Daemon mode")
uvicorn.run("pkg.daemon:app", port=8000)
uvicorn.run("pkg.daemon:app", port=port)


if __name__ == "__main__":
Expand Down

0 comments on commit e23da0d

Please sign in to comment.