Tutorial
How to Deploy a Python Flask App to the Cloud
Flask is the go-to for Python APIs. Here’s how to deploy yours in minutes.
Prerequisites
- Flask app with
requirements.txt - GitHub repo
- Remoud account (free)
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
- Push to GitHub
- Select repo in Remoud dashboard
- Set start command:
python app.py - Click Deploy
Django
Same process. Start command: gunicorn myproject.wsgi:application --bind 0.0.0.0:$PORT
Why Remoud for Python?
- Auto-detects Python
- Free tier - 256MB RAM
- Auto SSL and custom domains
- Web terminal for debugging
Ready to deploy?
Get your app live in seconds with Remoud. Free tier available.
Start deploying for free →