✨ New Features: - Added view_orders route with proper table display - Implemented CSV upload with preview workflow and date parsing - Added production WSGI server configuration with Gunicorn - Created comprehensive production management scripts 🔧 Bug Fixes: - Fixed upload_data route column mapping for actual CSV structure - Resolved print module database queries and template rendering - Fixed view orders navigation routing (was pointing to JSON API) - Corrected barcode display width constraints in print module - Added proper date format parsing for MySQL compatibility 🎨 UI/UX Improvements: - Updated view_orders template with theme-compliant styling - Hidden barcode text in print module preview for cleaner display - Enhanced CSV upload with two-step preview-then-save workflow - Improved error handling and debugging throughout upload process 🚀 Production Infrastructure: - Added Gunicorn WSGI server with proper configuration - Created systemd service for production deployment - Implemented production management scripts (start/stop/status) - Added comprehensive logging setup - Updated requirements.txt with production dependencies 📊 Database & Data: - Enhanced order_for_labels table compatibility - Fixed column mappings for real CSV data structure - Added proper date parsing and validation - Improved error handling with detailed debugging 🔧 Technical Debt: - Reorganized database setup documentation - Added proper error handling throughout upload workflow - Enhanced debugging capabilities for troubleshooting - Improved code organization and documentation
19 lines
497 B
Python
Executable File
19 lines
497 B
Python
Executable File
#!/usr/bin/env python3
|
|
"""
|
|
WSGI Entry Point for Trasabilitate Application
|
|
This file serves as the entry point for WSGI servers like Gunicorn.
|
|
"""
|
|
|
|
import os
|
|
import sys
|
|
from app import create_app
|
|
|
|
# Add the current directory to Python path
|
|
sys.path.insert(0, os.path.dirname(__file__))
|
|
|
|
# Create the Flask application instance
|
|
application = create_app()
|
|
|
|
# For debugging purposes (will be ignored in production)
|
|
if __name__ == "__main__":
|
|
application.run(debug=False, host='0.0.0.0', port=8781) |