DEV Community

Discussion on: How to deploy a Python/Flask App to Vercel

 
headwinds profile image
brandon flowers

I've pushed my source to github

github.com/headwinds/venv

Thread Thread
 
josiasaurel profile image
Josias Aurel

Thanks. I'll check it

Thread Thread
 
andrewbaisden profile image
Andrew Baisden

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.

Thread Thread
 
headwinds profile image
brandon flowers

github.com/headwinds/venv

clone git@github.com:headwinds/venv.git
cd venv/venv
vercel

Thread Thread
 
josiasaurel profile image
Josias Aurel

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

Thread Thread
 
josiasaurel profile image
Josias Aurel • Edited

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

Thread Thread
 
andrewbaisden profile image
Andrew Baisden

Well done you worked hard to find a solution congrats!

Thread Thread
 
josiasaurel profile image
Josias Aurel

Thanks. I am happy it works now

Thread Thread
 
headwinds profile image
brandon flowers

amazing - very happy to hear and also great that you shared your solution for others!