- Fix upload folder path to be relative to Flask app static folder - Update app initialization to use proper static folder structure - Change default development port to 5001 to avoid AirPlay conflicts - Images now display correctly in both public and admin views The refactored app now properly serves uploaded images from the correct static file location. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
20 lines
591 B
Python
20 lines
591 B
Python
#!/usr/bin/env python3
|
|
"""
|
|
Pets of Powerwashing - Main application entry point
|
|
|
|
A Flask application for managing pet picture submissions with authentication,
|
|
likes system, and public gallery functionality.
|
|
"""
|
|
|
|
import os
|
|
from app import create_app
|
|
|
|
# Create Flask application using factory pattern
|
|
app = create_app()
|
|
|
|
if __name__ == "__main__":
|
|
# Development server configuration
|
|
debug_mode = os.environ.get('FLASK_ENV') == 'development'
|
|
port = int(os.environ.get('PORT', 5001)) # Use port 5001 to avoid AirPlay conflict
|
|
app.run(debug=debug_mode, host='0.0.0.0', port=port)
|