settings_dev.py 971 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. # -*- coding: utf-8 -*-
  2. """
  3. walle-web
  4. Application configuration.
  5. 注意: 带了 @TODO 的地方可能需要你的调整
  6. :copyright: © 2015-2019 walle-web.io
  7. :created time: 2018-11-24 07:05:35
  8. :author: wushuiyong@walle-web.io
  9. """
  10. import os
  11. from walle.config.settings import Config
  12. class DevConfig(Config):
  13. """Production configuration."""
  14. ENV = 'dev'
  15. DEBUG = True
  16. # 服务启动 @TODO
  17. # HOST 修改为与 nginx server_name 一致.
  18. # 后续在web hooks与通知中用到此域名.
  19. HOST = 'dev.admin.walle-web.io'
  20. PORT = 5000
  21. # https True, http False
  22. SSL = False
  23. # 数据库设置 @TODO
  24. SQLALCHEMY_DATABASE_URI = 'mysql://user:password@localhost:3306/walle?charset=utf8'
  25. # 本地代码检出路径(用户查询分支, 编译, 打包) #TODO
  26. CODE_BASE = '/tmp/walle/codebase/'
  27. SQLALCHEMY_ECHO = True
  28. # 登录cookie 防止退出浏览器重新登录
  29. COOKIE_ENABLE = False