Fix production config: use simple cache instead of Redis, fix Gunicorn to use production config
This commit is contained in:
@@ -80,11 +80,8 @@ class ProductionConfig(Config):
|
|||||||
f'sqlite:///{os.path.join(_basedir, "instance", "dashboard.db")}'
|
f'sqlite:///{os.path.join(_basedir, "instance", "dashboard.db")}'
|
||||||
)
|
)
|
||||||
|
|
||||||
# Redis Cache
|
# Cache - use simple cache instead of Redis
|
||||||
CACHE_TYPE = 'redis'
|
CACHE_TYPE = 'simple'
|
||||||
CACHE_REDIS_HOST = os.getenv('REDIS_HOST', 'redis')
|
|
||||||
CACHE_REDIS_PORT = int(os.getenv('REDIS_PORT', 6379))
|
|
||||||
CACHE_REDIS_DB = 0
|
|
||||||
CACHE_DEFAULT_TIMEOUT = 300
|
CACHE_DEFAULT_TIMEOUT = 300
|
||||||
|
|
||||||
# Security
|
# Security
|
||||||
|
|||||||
@@ -49,4 +49,4 @@ exec gunicorn \
|
|||||||
--timeout 120 \
|
--timeout 120 \
|
||||||
--access-logfile - \
|
--access-logfile - \
|
||||||
--error-logfile - \
|
--error-logfile - \
|
||||||
"app.app:create_app()"
|
"app.app:create_app('production')"
|
||||||
|
|||||||
Reference in New Issue
Block a user