test

请不要把重要的私人代码放到本gitlab服务器,本服务器是用于测试和学习,会不定期清理私人的代码仓库,敬请谅解。

Commit 2dec185b authored by penxiao's avatar penxiao

change gitlab ci config

Signed-off-by: penxiao's avatarPeng Xiao <penxiao@cisco.com>
parent 874df5ff
......@@ -4,7 +4,7 @@ blinker==1.4
cffi==1.7.0
click==6.6
dominate==2.2.1
Flask==0.11.1
Flask==0.10.1
Flask-Bcrypt==0.7.1
Flask-Bootstrap==3.3.6.0
Flask-DebugToolbar==0.10.0
......
#!/usr/bin/env bash
export APP_SETTINGS="skeleton.server.config.ProductionConfig"
python manage.py create_db
python manage.py create_admin
python manage.py create_data
......
......@@ -14,6 +14,8 @@ class BaseConfig(object):
DEBUG_TB_ENABLED = False
DEBUG_TB_INTERCEPT_REDIRECTS = False
SQLALCHEMY_TRACK_MODIFICATIONS = False
SQLALCHEMY_DATABASE_URI = os.environ.get(
'DATABASE_URL', 'sqlite:///' + os.path.join(basedir, 'db.sqlite'))
class DevelopmentConfig(BaseConfig):
......@@ -21,7 +23,6 @@ class DevelopmentConfig(BaseConfig):
DEBUG = True
BCRYPT_LOG_ROUNDS = 4
WTF_CSRF_ENABLED = False
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'dev.sqlite')
DEBUG_TB_ENABLED = True
......@@ -31,7 +32,6 @@ class TestingConfig(BaseConfig):
TESTING = True
BCRYPT_LOG_ROUNDS = 4
WTF_CSRF_ENABLED = False
SQLALCHEMY_DATABASE_URI = 'sqlite:///'
DEBUG_TB_ENABLED = False
PRESERVE_CONTEXT_ON_EXCEPTION = False
......@@ -40,5 +40,4 @@ class ProductionConfig(BaseConfig):
"""Production configuration."""
SECRET_KEY = 'my_precious'
DEBUG = False
SQLALCHEMY_DATABASE_URI = 'postgresql://localhost/example'
DEBUG_TB_ENABLED = False
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment