23 lines
511 B
Python
23 lines
511 B
Python
#!/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)
|