Skip to content

Commit 27f740b

Browse files
Defaults to port 44777
1 parent d3963cf commit 27f740b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • {{cookiecutter.project_name}}

{{cookiecutter.project_name}}/dev.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818

1919
if __name__ == "__main__":
2020
os.environ["APP_ENV"] = "dev"
21-
port = int(os.environ.get("APP_PORT", 8000))
21+
port = int(os.environ.get("APP_PORT", 44777))
2222

2323
console = Console()
2424
console.rule("[bold yellow]Running for local development", align="left")
2525
{%- if cookiecutter.use_openapi %}
26-
console.print("[bold yellow]Visit http://localhost:8000/docs")
26+
console.print(f"[bold yellow]Visit http://localhost:{port}/docs")
2727
{%- endif %}
2828

2929
uvicorn.run(

0 commit comments

Comments
 (0)