Updating the config file

This commit is contained in:
Denis-Cosmin Nutiu 2017-04-21 18:07:00 +03:00
parent 016658f2a6
commit 6faa57737e

View file

@ -30,11 +30,10 @@ class Config:
SQLALCHEMY_COMMIT_ON_TEARDOWN = True SQLALCHEMY_COMMIT_ON_TEARDOWN = True
DEBUG = True DEBUG = True
# Server Settings # Server Settings
SERVER_NAME = "localhost:5000"
ADMIN_EMAIL = "metonymy@fedoraproject.com" ADMIN_EMAIL = "metonymy@fedoraproject.com"
ADMIN_NAME = "Metonymy" ADMIN_NAME = "Metonymy"
APP_IP = "localhost" BIND_IP = "0.0.0.0"
APP_PORT = 5000 BIND_PORT = 5000
CACHE_TYPE = "memcached" CACHE_TYPE = "memcached"
CACHE_DEFAULT_TIMEOUT = 60 CACHE_DEFAULT_TIMEOUT = 60
CACHE_KEY_PREFIX = "benchmark_scoreboard" CACHE_KEY_PREFIX = "benchmark_scoreboard"
@ -49,7 +48,8 @@ class Config:
class DevelopmentConfig(Config): class DevelopmentConfig(Config):
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'database.sqlite') SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'database.sqlite')
CACHE_TYPE = "simple" CACHE_TYPE = "filesystem"
CACHE_DIR = "/tmp"
@staticmethod @staticmethod
def init_app(app): def init_app(app):
@ -77,7 +77,8 @@ class ProductionConfig(Config):
class TestingConfig(Config): class TestingConfig(Config):
MAX_RESULTS_PER_PAGE = 1 MAX_RESULTS_PER_PAGE = 1
CACHE_TYPE = "simple" CACHE_TYPE = "filesystem"
CACHE_DIR = "/tmp"
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'test_database.sqlite') SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'test_database.sqlite')
@staticmethod @staticmethod
@ -90,5 +91,5 @@ config = {
'development': DevelopmentConfig, 'development': DevelopmentConfig,
'production': ProductionConfig, 'production': ProductionConfig,
'testing': TestingConfig, 'testing': TestingConfig,
'default': DevelopmentConfig 'default': ProductionConfig
} }