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:
9
main.py
Normal file → Executable file
9
main.py
Normal file → Executable 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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user