Skip to content

Commit

Permalink
added host=0.0.0.0 to the uvicorn run command so that any container r…
Browse files Browse the repository at this point in the history
…unning an image of this will accept traffic from other machines
  • Loading branch information
Rose Yemelyanova committed Feb 23, 2023
1 parent 73f6849 commit f4af88e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/diffcalc_api/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def main(args=None):
parser = ArgumentParser()
parser.add_argument("--version", action="version", version=__version__)
args = parser.parse_args(args)
run("diffcalc_api.server:app")
run("diffcalc_api.server:app", host="0.0.0.0")


if __name__ == "__main__":
Expand Down

0 comments on commit f4af88e

Please sign in to comment.