I'm also interested in this demo. Big thank you Andrew for writing it up!
I too was able to get your demo running locally but when I deployed it to Vercel - I also the got the bad gateway error! It deployed successfully and I can see in my builds logs that it looks good.
In the past, I have been able to deploy a Flask app to Vercel though so I'm troubleshooting too to see if I can see what has changed.
I'm on a Mac and share same environment as Andrew. I'll try to find what's going on and report back.
Yeah that requirements.txt file is essential without it the routing is broken. As for the problems Josias is having its likely because its Linux and because you are using Termux on Android I think. I don't have any experience with that setup my guess is its something to do with the paths similar to the issues that max had.
Well Andrew you are probably right. Even when I cloned your repo it didn't work for as well. That's probably something with Termux. I am giving up on using only termux and I'll try another way . Thanks guys
Hey. I gave myself a last try but this time I took away the virtual env. This means that the problem came from he fact that the virtual env replicated my architecture (aarch64) which is not compatible with vercel. I redeployed only with the main server, requirements.txt and the vercel.json config. Here is the basic server running and the repo
I am using a terminal emulator Termux which emulates Linux pretty well. I don't know if that's the problem. I'll retry
I'm also interested in this demo. Big thank you Andrew for writing it up!
I too was able to get your demo running locally but when I deployed it to Vercel - I also the got the bad gateway error! It deployed successfully and I can see in my builds logs that it looks good.
In the past, I have been able to deploy a Flask app to Vercel though so I'm troubleshooting too to see if I can see what has changed.
I'm on a Mac and share same environment as Andrew. I'll try to find what's going on and report back.
Just a follow up.... in my case, I forgot to include the requirements.txt file.
Once I added the requirements, I was able to deploy the app:
venv.headwinds1.vercel.app/
I don't know what's happening really. I rebuilt the app three times and nothing. I'll retry one more time ;/
rebuilt eh?
Can you run the app locally in your browser?
Yeah. It works correctly locally
I've pushed my source to github
github.com/headwinds/venv
Thanks. I'll check it
Yeah that requirements.txt file is essential without it the routing is broken. As for the problems Josias is having its likely because its Linux and because you are using Termux on Android I think. I don't have any experience with that setup my guess is its something to do with the paths similar to the issues that max had.
github.com/headwinds/venv
clone git@github.com:headwinds/venv.git
cd venv/venv
vercel
Well Andrew you are probably right. Even when I cloned your repo it didn't work for as well. That's probably something with Termux. I am giving up on using only termux and I'll try another way . Thanks guys
Hey. I gave myself a last try but this time I took away the virtual env. This means that the problem came from he fact that the virtual env replicated my architecture (aarch64) which is not compatible with vercel. I redeployed only with the main server, requirements.txt and the vercel.json config. Here is the basic server running and the
repo
Well done you worked hard to find a solution congrats!
Thanks. I am happy it works now
amazing - very happy to hear and also great that you shared your solution for others!