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.
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: https://github.com/zubin-madon/NFTrees
To build locally this is what I do:
app.py - client side web application (transpiled files get put into ./src/target/)
(venv) $ transcrypt --nomin --map src/app.py
nft_server.py - FastAPI REST server
(venv) $ uvicorn --app-dir src nft_server:app --reload
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 gunicorn.conf.py src.main:app
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
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!
Click below to sign up and get $100 of credit to try our products over 60 days!