This commit is contained in:
Jason
2026-04-11 00:04:09 -05:00
commit 7a2fffd62e
110 changed files with 51809 additions and 0 deletions
+44
View File
@@ -0,0 +1,44 @@
"""
Configuration file for Flask application
"""
import os
class Config:
"""Base configuration"""
SECRET_KEY = os.environ.get('SECRET_KEY') or 'dev-secret-key-change-in-production'
DEBUG = False
TESTING = False
# Application root for subdirectory deployments
# Defaults to '/' (root) for local development
# Set to '/product-finder' for production deployment
APPLICATION_ROOT = os.environ.get('APPLICATION_ROOT', '/')
class DevelopmentConfig(Config):
"""Development configuration"""
DEBUG = True
ENV = 'development'
# Development runs at root
APPLICATION_ROOT = os.environ.get('APPLICATION_ROOT', '/')
class ProductionConfig(Config):
"""Production configuration"""
DEBUG = False
ENV = 'production'
# Production deployed to /product-finder subdirectory
APPLICATION_ROOT = os.environ.get('APPLICATION_ROOT', '/product-finder')
# Add production-specific settings here
# DATABASE_URI = os.environ.get('DATABASE_URL')
class TestingConfig(Config):
"""Testing configuration"""
TESTING = True
DEBUG = True
# Configuration dictionary
config = {
'development': DevelopmentConfig,
'production': ProductionConfig,
'testing': TestingConfig,
'default': DevelopmentConfig
}