Deploy/ Build errors in FastAPI app.

  1. In my first attempt I left the build command blank. It seemed to build successfully, and then the deploy log showed error: ModuleNotFoundError: No module named '_tkinter' I am not even using Tkinter in my app.

  2. Second attempt I added a procfile with the line: web: uvicorn --app-dir src nft_server:app --reload in my repo and even the build failed.

My github repo:

To build locally this is what I do: - client side web application (transpiled files get put into ./src/target/) (venv) $ transcrypt --nomin --map src/ - FastAPI REST server (venv) $ uvicorn --app-dir src nft_server:app --reload http://localhost:8000

  1. I tried this article here:

But the run command is failing me. Here’s what the article says:

Modify the Run Command setting to point to your application. For this example, my project is named mysite. So the modified command would be gunicorn --worker-tmp-dir /dev/shm --config src.main:app

I replaced src.main with src.nft_server as per my repo. The rest I kept the same. Build succeeded but deploy failed.

[2022-07-16 04:34:19] bash: gunicorn: command not found
Deploy Error: Run Command Not Executable

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer