Production deployment fixes and enhancements

- Added environment variable loading with python-dotenv
- Fixed Docker session permissions by using /tmp directory
- Updated .dockerignore to include .env file properly
- Enhanced docker-compose.yml with env_file directive
- Fixed Gunicorn configuration for Docker compatibility
- Updated README.md with comprehensive deployment docs
- Cleaned up debug logging from API routes
- Added DOMAIN_SETUP.md for reverse proxy guidance
- All production issues resolved and tested working
- Application now accessible at qr.moto-adv.com
This commit is contained in:
ske087
2025-07-16 17:49:10 -04:00
parent e9a8f5e622
commit 264a81652a
27 changed files with 140 additions and 24 deletions

9
main.py Normal file → Executable file
View File

@@ -1,7 +1,6 @@
#!/usr/bin/env python3
""" print("🚀 QR Code Manager - Production Mode")
print(" This should be run with Gunicorn in production!")
print("🔧 Use: gunicorn -c gunicorn.conf.py main:app") Code Manager - Main Application Entry Point
"""
QR Code Manager - Main Application Entry Point
A modern Flask web application for generating and managing QR codes with authentication.
Features include:
@@ -14,8 +13,12 @@ Features include:
"""
import os
from dotenv import load_dotenv
from app import create_app
# Load environment variables from .env file
load_dotenv()
# Create Flask application
app = create_app()