File size: 481 Bytes
1c288bc | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | #!/bin/bash
# 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 |