I am creating a chat site using Flask. And I want to make it publicly available for testing. I would love to use Replit for hosting, but due to lack of money, I can’t afford it. Therefore, I am looking for free hosting with private code (so that my code is not publicly available), with SocketIO and Flask support. Can you advise me on such hosting?
I’ve already tried using Pythonanywhere, but it doesn’t have SocketIO support, so it doesn’t suit me.
I mean, I guess I’d be okay with hosting your repl privately and inviting you and then deploying it.
Thank you for the offer, but I would not like to harm your budget
No, no. I have a core plan and I’m using less than 10% of my deployment credits right now, so I’d be happy to
It appears Vercel supports Flask and the free tier is probably enough for this Pricing – Vercel
The Versele Flask template says: “Use Flask 3 on Vercel with Serverless Functions using the Python Runtime.” What does it mean?
I don’t know, I don’t know Flask
Serverless means that it doesn’t really run, and seeing that you have websockets, its probably a no go.
Adding on to what py660 said, serverless generally means you don’t have a permanent server. The corresponding serverless function is run every time someone makes a request, rather than having a constant server process running. (This means persistent things like in memory state management and websockets don’t work)
I’m pretty sure autoscale deployments are meant for serverless applications.
So vercel is not suitable for my task? If so, what should I use instead?
You should get a dedicated VM (anywhere, because they all cost money one way or another).
You can try to use
I could use it, but there is one problem - I have no money.
I tried to register with Heroku, but it turned out that they do not accept users from my country
Can you explain what AWS is?
AWS stands for Amazon Web Services.
The “always free” is a lie. DB is “free” but you have to pay for compute. EC2 is “free” but it runs out in a year and you can only have one instance running.
BTW: AMAZON NEEDS A CC to work.
So my question is still relevant.
Yes. But there isn’t any viable solution out there that’s free.
I kinda suggested
Heroku, but it got ignored so I’m gonna mention it again.
EDIT: I’m tripping because you replied to it. I mean, I think Glitch works, but I have no clue. You’re probably not going to find too many good hosting services that are free. Even if you find a free one, it’s probably going to have extreme limitations.