mirror of
https://github.com/Dokploy/examples.git
synced 2026-06-15 20:25:24 +02:00
Replaced `ip="0.0.0.0"` with `host="0.0.0.0"` in `main.py` to fix a TypeError during Flask startup. This change ensures compatibility with Flask's app.run() parameters and allows the app to bind to all interfaces as expected in production environments like Dokploy. ``` Traceback (most recent call last): File "/app/main.py", line 12, in <module> app.run(debug=False, ip="0.0.0.0", port=5000) File "/opt/venv/lib/python3.12/site-packages/flask/app.py", line 625, in run * Serving Flask app 'main' * Debug mode: off run_simple(t.cast(str, host), port, self, **options) TypeError: run_simple() got an unexpected keyword argument 'ip' ```
Flask Application Examples
This repository contains a Flask application along with necessary setup instructions.
Installation
Follow these steps to set up and install the Flask application:
Prerequisites
- Python 3.x installed on your system. You can download Python from python.org.
Setup
-
Make dir and go to directory:
mkdir <directory> cd <directory> -
Create and activate a virtual environment:
python3 -m venv venvActivate the virtual environment: On windows:
venv\Scripts\activateOn macOS/Linux:
source venv/bin/activate -
Install dependencies:
pip install -r requirements.txt -
Running the Application:
python main.py