---
title: "Flask hosting, Python web apps on a VPS · CloudSat"
description: "Run Flask on a CloudSat VPS: a Python web stack on Ubuntu 24.04 with root SSH for Gunicorn and Nginx, NVMe storage and hourly billing for test servers."
url: https://cloudsat.io/apps/deploy-flask
updated: 2026-11-18T15:52:35Z
source: CloudSat (https://cloudsat.io/). Prices in USD.
---

[Development](https://cloudsat.io/apps/category/developer-tools) Editor's pick

# Flask on a VPS

Flask is a small Python web framework built on Werkzeug and Jinja. Start with one file, add extensions as you need them, and run it on a server you control.

[Deploy Flask](https://dash.cloudsat.io/console/deploy?image=app%3Aflask&plan=cloud-1g) [All apps](https://cloudsat.io/apps)

## About Flask

Flask is a BSD-licensed WSGI framework that began as a thin layer over Werkzeug and Jinja. A single file with one route is a working app, while blueprints, a Click-based CLI and a large extension ecosystem carry it to bigger projects without imposing a structure.

Python web apps run well on a modest Cloud VPS, and DDR5 memory leaves room for several Gunicorn workers. With root access you choose the Python version, WSGI server and proxy, and hourly billing suits short-lived test servers.

You start from Ubuntu 24.04 LTS, Python and Flask, with nothing else in the way of your code.

## What you get with Flask

- Routing and request handling from Werkzeug
- Jinja templates with autoescaping
- Blueprints to split large apps into modules
- A `flask` command line built on Click
- Extensions for databases, auth, forms and more

## Flask use cases

- Small web apps and admin tools
- JSON APIs and webhook endpoints
- Prototypes that may grow into products

## After you deploy Flask

1. With the server **Running**, connect over SSH as root and make a virtual environment for your project.
2. Try it with `flask --app app run --host 0.0.0.0` and open `http://<server IP>:5000`; the built-in server is for development only.
3. For production, install Gunicorn and run `gunicorn -w 4 'app:app'` under a systemd unit.
4. Put Nginx in front with your domain and HTTPS, proxying to Gunicorn on port 8000.

## Flask ports

Open these in your firewall if you use one: `80/tcp HTTP`, `443/tcp HTTPS`, `5000/tcp dev server`.

## Flask FAQ

### Can I use the Flask development server in production?

No. Flask's documentation says it is not designed for production. Use a WSGI server such as Gunicorn, Waitress or uWSGI behind Nginx, and keep port 5000 closed to the internet.

### Does Flask support async views?

Yes, `async def` views work after installing the `flask[async]` extra, but Flask remains a WSGI framework. For mostly asynchronous workloads, an ASGI framework such as [FastAPI](https://cloudsat.io/apps/deploy-fastapi) may fit better.

**Disclaimer.** The Flask project has no affiliation with CloudSat and does not endorse it. Names and logos belong to their owners and appear only to identify the software.

## Apps like Flask

[All apps in Development](https://cloudsat.io/apps/category/developer-tools)

- [FastAPI](https://cloudsat.io/apps/deploy-fastapi): Development FastAPI builds Python APIs from type hints, with validation and interactive docs included. Run it on a server where you own the whole stack.
- [Django](https://cloudsat.io/apps/deploy-django): Development Django gives Python projects an ORM, an admin site, authentication and security defaults out of the box. Run it on a VPS with full control of the stack.
- [code-server](https://cloudsat.io/apps/deploy-code-server): Development code-server serves VS Code from a remote machine to any browser. Your editor, terminal and extensions follow you, while builds run on the server's CPU.
- [Node.js](https://cloudsat.io/apps/deploy-node-js): Development Node.js runs JavaScript on the server with non-blocking I/O and the npm registry, for APIs, web apps, real-time services and build tooling.
- [Apache Pulsar](https://cloudsat.io/apps/deploy-apache-pulsar): Development Apache Pulsar combines messaging and streaming in one system, with tenants, namespaces, tiered storage and geo-replication, deployed here as a standalone node.
- [Appwrite](https://cloudsat.io/apps/deploy-appwrite): Development Appwrite is an open-source backend server: auth, databases, storage, functions, messaging and realtime APIs, self-hosted on your own VPS.
