Flask

Host a Flask app

A Flask app goes online behind gunicorn, with a volume for its SQLite file or uploads and an HTTPS address you can send to anyone.

Paste this into your coding agent

Run curl -s https://vibecodedhost.com/deploy.md and follow its instructions to deploy this project.

Works in Claude Code, Codex, Cursor and anything else that can run a shell command.

The files

What your agent writes.

You do not have to write any of this. It is here so you can see how little there is, and check your agent's work if a deploy goes wrong.

With this manifest the app would be live at https://my-flask-app.vibecodedhost.app. The name is yours to choose, as long as no other app has it.

Every field of vibe.json, explained →

vibe.json
{
  "version": 1,
  "name": "my-flask-app",
  "containers": [
    {
      "name": "web",
      "build": {
        "context": ".",
        "dockerfile": "Dockerfile"
      },
      "port": 8000,
      "public": true,
      "env": {
        "DATABASE_PATH": "/data/app.db"
      },
      "volume": "/data",
      "healthPath": "/"
    }
  ]
}
Dockerfile
FROM python:3.12-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt gunicorn
COPY . .
EXPOSE 8000
CMD ["gunicorn", "--bind", "0.0.0.0:8000", "app:app"]

Worth knowing

Flask on Vibe Hosting

Serve with gunicorn, not flask run

The development server is meant for your own machine, and its debug mode must never face the internet. gunicorn takes one line in the Dockerfile.

Keep the database on the volume

Point SQLite at /data. A file written anywhere else in the container is gone after the next deploy.

Set a real secret key

Sessions signed with a placeholder key can be forged. Have your agent generate one and pass it in the environment.

Questions

Before you deploy.

Does it work with Flask-SQLAlchemy and migrations?

Yes. Run migrations in the container's start command, before gunicorn, so each deploy brings the database up to date.

Built something else? Next.js, Node.js and Express, FastAPI, Django, React and Vite, Apps with Postgres, Apps with SQLite, Docker Compose projects.

Your app could be online in a few minutes.

Copy the sentence, paste it into your agent, and read the address it gives you back. No account, no card, nothing to pay.

Paste this into your coding agent

Run curl -s https://vibecodedhost.com/deploy.md and follow its instructions to deploy this project.

Works in Claude Code, Codex, Cursor and anything else that can run a shell command.

Would you rather hold the key yourself?

Questions first, or stuck? Contact support and a person replies as soon as possible.