Updates galore. Improved folder structure, componentized, and notifications upon completion.
This commit is contained in:
parent
b48784e2ad
commit
7e0502ca40
33 changed files with 3565 additions and 728 deletions
22
run.py
Normal file
22
run.py
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
#!/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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue