Deploy

Deploy Python,

on a server run for you.

Ship a Django, Flask, or FastAPI app straight from GitHub. SelfHost auto-detects the build, runs it on a dedicated server, and puts a one-click Postgres right beside it, no server to provision, no DevOps.

Django, Flask, FastAPI /One-click Postgres beside it /Auto-deploy on push /From ~$0.02/hr

What you get

Your Python app, deployed.
Database included, run for you.

SelfHost detects your Python project from GitHub with Nixpacks (requirements.txt or pyproject.toml), installs dependencies, and runs your app behind a production server. Add a managed Postgres to the same project in one click, point a domain, and you are live. No host to patch, no reverse proxy to configure.

Nixpacks (auto-detected), or your own Dockerfile

Deploy in 5 steps

From zero to live.
No server to set up.

From GitHub to a live URL in five steps. SelfHost detects the build; you set the start command and env.

1

Create a Project

Give it a name and SelfHost provisions a dedicated server for you in a couple of minutes.

2

Add your GitHub repo

Connect the GitHub App or paste a public repo URL, pick a branch, and SelfHost auto-detects Python via Nixpacks (or use your own Dockerfile).

3

Set the start command and env

Point SelfHost at your server command (gunicorn for Django or Flask, uvicorn for FastAPI), set the port, and paste a .env for your secrets.

4

Add a database

Add a one-click PostgreSQL to the same project and wire its connection string into your app as DATABASE_URL.

5

Point your domain and deploy

Add a custom domain (SSL handled automatically) and deploy. Every push redeploys, with live logs and one-click rollback.

Environment variables

Configure it
in minutes.

Set your runtime config per service, paste a .env to import in bulk:

Paste a .env to import in bulk, or set keys one by one. Values are wired into every build and deploy.

Key variables

PORT The port your app server binds to (gunicorn or uvicorn).
DATABASE_URL Connection string for the Postgres you added to the project.
SECRET_KEY App secret (Django SECRET_KEY, Flask secret, etc.).
.env import Paste a .env to load all variables at once.

What you get

Python, the easy way.
On a server you control.

Django, Flask, FastAPI

Any Python web framework. SelfHost auto-detects the build from requirements.txt or pyproject.toml.

A database, one click away

Add managed PostgreSQL, Redis, MySQL, or MongoDB to the same project, right beside your app.

Auto-deploy from GitHub

Every push ships automatically, with PR preview environments, streaming logs, and one-click rollback.

A server you control

Dedicated compute with live CPU, memory, and connection metrics, not an opaque platform.

Custom domain + SSL

Add a domain, verify DNS, and HTTPS is provisioned and renewed for you.

Pay only for what you run

Billed by the hour against prepaid credits, from ~$0.02/hr. Pause and pay nothing.

Which one

Need production-grade data?

A one-click in-project Postgres is perfect for most apps. If you need a dedicated, production database with point-in-time recovery, pooling, and Multi-AZ, use managed PostgreSQL instead and connect it to your app.

Frequently Asked Questions

Can I deploy a Django app on SelfHost?
Yes. Connect your GitHub repo, set your gunicorn start command and DATABASE_URL, and SelfHost builds and runs it on a dedicated server with auto-deploy on push.
Does SelfHost work for Flask and FastAPI too?
Yes. Any Python web framework works. SelfHost auto-detects the build with Nixpacks; you set the start command (gunicorn or uvicorn) and the port.
How do I add a database to my Python app?
Add a one-click PostgreSQL, Redis, MySQL, or MongoDB to the same project and wire the connection string into your app. For a dedicated production database, use managed PostgreSQL. Managed PostgreSQL.
How much does it cost to host a Python app?
Pay-as-you-go by the hour against prepaid credits. A project server starts around $0.02/hr (about $0.50 a day) with no tiers. Pause it and you pay nothing. See pricing.
Can I bring my own Dockerfile for Python?
Yes. If you would rather control the build, add a Dockerfile and SelfHost uses it instead of the auto-detected Nixpacks build.

Deploy your Python app. Database included.

Django, Flask, FastAPI
One-click Postgres beside it
From ~$0.02/hr, pay-as-you-go
Deploy Python