A simple Flask web application that displays a "Hello by Clever Cloud" page.
This is a basic Python Flask application configured to run on Clever Cloud. It serves a single route that renders an HTML template with the Clever Cloud branding.
- Python >= 3.12
- Flask >= 3.0.0
Install dependencies using uv
:
uv sync
Run the Flask application:
python main.py
The application will be available at http://localhost:9000
For uv
projects on Clever Cloud, the application must listens on port 9000
with 0.0.0.0
as host.
- Run Command: Set the environment variable:
CC_RUN_COMMAND="uv run main.py"
- Login (if not already logged in):
clever login
- Create a Python application:
clever create hello_world --type python --region par --org [ORGANISATION ID]
- Set up environment variable:
clever env set CC_PYTHON_VERSION "3.13"
clever env set CC_RUN_COMMAND "uv run main.py"
- Deploy:
clever deploy