#!/usr/bin/env python3 """ run.py — Development server entry point. Usage: python3 run.py [PORT] Do NOT use this in production — use Gunicorn via wsgi.py instead. """ import sys from app import create_app from app.config import MEDIA_ROOT if __name__ == '__main__': port = int(sys.argv[1]) if len(sys.argv) > 1 else 5000 print(f"\n{'='*60}") print(f" VideoPress — dev server http://localhost:{port}") print(f" MEDIA_ROOT : {MEDIA_ROOT}") print(f" WARNING : dev server only — use Gunicorn for production") print(f"{'='*60}\n") create_app().run(host='0.0.0.0', port=port, debug=False, threaded=True)