1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

[Python] Python FastAPI no console mode with Uvicorn

Discussão em 'Python' iniciado por Stack, Setembro 13, 2024.

  1. Stack

    Stack Membro Participativo

    I am building an app. While deploying in Windows server I don't want the console opening. But when I try to do so in .pyw form it does noting

    run.pyw 1>stdout.txt 2>stderr.txt calls the following code:

    import uvicorn
    uvicorn.run("main:app", host="0.0.0.0", port=8000, reload=True)


    Neither do I get any error nor any output. Nor does the API works.

    Is it even possible to run in no console mode?

    Continue reading...

Compartilhe esta Página