Uploaded code
This commit is contained in:
22
wsgi.py
Normal file
22
wsgi.py
Normal file
@@ -0,0 +1,22 @@
|
||||
#!/usr/bin/env python3
|
||||
"""
|
||||
WSGI entry point for Sharey
|
||||
This file is used by Gunicorn and other WSGI servers
|
||||
"""
|
||||
import sys
|
||||
import os
|
||||
from pathlib import Path
|
||||
|
||||
# Add src directory to Python path
|
||||
src_path = Path(__file__).parent / "src"
|
||||
sys.path.insert(0, str(src_path))
|
||||
|
||||
# Import the Flask application
|
||||
from app import app
|
||||
|
||||
# Create the WSGI application
|
||||
application = app
|
||||
|
||||
if __name__ == "__main__":
|
||||
# This allows running the WSGI file directly for testing
|
||||
app.run(host="0.0.0.0", port=8866, debug=False)
|
||||
Reference in New Issue
Block a user