Pricing Docs Blog Apps Tools Get Started
Python

Deploy Flask in 60 Seconds

Flask is Python's micro web framework. Deploy your Flask app to a real server with one command — no Gunicorn setup, no WSGI plumbing, no manual virtualenv.

Deploy Flask Starting at $3/mo

The usual way to deploy Flask

  1. Flask's dev server cannot handle production traffic — you must configure Gunicorn or uWSGI as a WSGI server
  2. Setting up Gunicorn with the right number of workers, timeouts, and bind address for your VPS size
  3. Creating and managing a Python virtualenv on the server, activating it in systemd, and keeping pip dependencies in sync
  4. Configuring nginx to proxy_pass to Gunicorn's Unix socket or TCP port and handle static files separately
  5. Setting up a systemd unit file to start Gunicorn on boot with the correct working directory and environment

Flask is simple to write but its production deployment stack (Gunicorn + nginx + systemd + virtualenv) is not.

Or just run one command

$ instapods deploy my-flask-app --preset python
→ Uploading files...
→ Installing dependencies (pip install -r requirements.txt)...
→ Starting with gunicorn app:app...
✓ Live at https://my-flask-app.instapods.app

What you get

Recommended plan for Flask

Launch Plan
$3/mo
Deploy Flask

Flask deployment notes

Entry Point Detection

InstaPods looks for app.py or wsgi.py as the entry point. Name your Flask app object "app" (e.g., app = Flask(__name__)) for automatic detection.

Requirements File

Include a requirements.txt with Flask and all dependencies. InstaPods runs pip install automatically in an isolated environment.

Static Files

Flask static files in the /static directory are served directly. For production, InstaPods configures Gunicorn behind a reverse proxy to handle both.

Deploy Flask in 60 seconds

One command. Real server. HTTPS included. No DevOps degree required.

Get Started