Help me choose a hosting service

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.

2 Likes

Thank you for the offer, but I would not like to harm your budget :slight_smile:

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 :laughing:

3 Likes

It appears Vercel supports Flask and the free tier is probably enough for this Pricing – Vercel

3 Likes

The Versele Flask template says: “Use Flask 3 on Vercel with Serverless Functions using the Python Runtime.” What does it mean?

2 Likes

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.

4 Likes

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.

4 Likes

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).

2 Likes

You can try to use Heroku.

1 Like

I could use it, but there is one problem - I have no money.

2 Likes

@KAlexK Maybe AWS’s Always Free?

2 Likes

I tried to register with Heroku, but it turned out that they do not accept users from my country :frowning:

Can you explain what AWS is?

3 Likes

AWS stands for Amazon Web Services.

3 Likes

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.

2 Likes

So my question is still relevant.

Yes. But there isn’t any viable solution out there that’s free.

1 Like

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.