← Back to Blog
Tutorial

How to Deploy a Python Flask App to the Cloud

Remoud Team · 5 min read · 2026-02-15

Flask is the go-to for Python APIs. Here’s how to deploy yours in minutes.

Prerequisites

Prepare Your App

pip freeze > requirements.txt

Ensure your app reads the PORT env var:

import os
from flask import Flask
app = Flask(__name__)

@app.route('/')
def hello():
    return 'Hello from Remoud!'

if __name__ == '__main__':
    port = int(os.environ.get('PORT', 5000))
    app.run(host='0.0.0.0', port=port)

Deploy on Remoud

  1. Push to GitHub
  2. Select repo in Remoud dashboard
  3. Set start command: python app.py
  4. Click Deploy

Django

Same process. Start command: gunicorn myproject.wsgi:application --bind 0.0.0.0:$PORT

Why Remoud for Python?

Ready to deploy?

Get your app live in seconds with Remoud. Free tier available.

Start deploying for free →