| # Development script to run the app with hot reloading | |
| # Set development environment | |
| export ENVIRONMENT=development | |
| # Run with Python's watchdog for auto-reloading | |
| # If watchdog is not installed, you can install it with: pip install watchdog | |
| if command -v watchmedo &> /dev/null; then | |
| watchmedo auto-restart --directory=./ --pattern="*.py" --recursive -- python app.py | |
| else | |
| echo "For hot reloading, install watchdog: pip install watchdog" | |
| python app.py | |
| fi |