def check_config()

in src/ab/apps/flask.py [0:0]


    def check_config(self):
        if not self.config.APP_NAME and self.config.REGISTER_AT_EUREKA:
            raise ConfigException(
                'please set unique APP_NAME for eureka register\nAPP_NAME会影响到线上服务,如果不知道是什么请看文档')

        if self.config.DEBUG and self.config.get('HOST', '').strip() not in ('127.0.0.1', 'localhost', '[::]') \
                and sys.platform == 'linux':
            raise ConfigException('服务器上只允许在绑定localhost/127.0.0.1的情况下打开debug模式,请返回修改后重新启动')

        if self.config.PORT != 8000:
            logger.warning("在生产环境,gunicorn端口默认应该是8000。如果你修改了默认端口,务必要修改nginx的代理设置")