Skip to content

Commit f4af88e

Browse files
author
Rose Yemelyanova
committed
added host=0.0.0.0 to the uvicorn run command so that any container running an image of this will accept traffic from other machines
1 parent 73f6849 commit f4af88e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diffcalc_api/__main__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def main(args=None):
1313
parser = ArgumentParser()
1414
parser.add_argument("--version", action="version", version=__version__)
1515
args = parser.parse_args(args)
16-
run("diffcalc_api.server:app")
16+
run("diffcalc_api.server:app", host="0.0.0.0")
1717

1818

1919
if __name__ == "__main__":

0 commit comments

Comments
 (0)