27 lines
768 B
Python
27 lines
768 B
Python
import os
|
|
import sys
|
|
|
|
|
|
class Config:
|
|
local_mongo_uri = 'mongodb://root:iamciniao@127.0.0.1:27017/?authSource=admin&readPreference=primary&ssl=false'
|
|
|
|
remote_mongo_uri = 'mongodb://root:Legu2020@dds-hp35c58764c35aa41188-pub.mongodb.huhehaote.rds.aliyuncs.com:3717,dds-hp35c58764c35aa42908-pub.mongodb.huhehaote.rds.aliyuncs.com:3717/admin?replicaSet=mgset-421510732'
|
|
|
|
ROOT_DIR = os.path.dirname(__file__)
|
|
|
|
|
|
class Production(Config):
|
|
DB_PREFIX = 'game'
|
|
run_model = 'production'
|
|
|
|
|
|
class Debug(Config):
|
|
DB_PREFIX = 'debug'
|
|
run_model = 'debug'
|
|
local_mongo_uri = 'mongodb://root:iamciniao@119.29.176.224:27017/?authSource=admin&readPreference=primary&ssl=false'
|
|
|
|
|
|
settings = Production
|
|
if sys.platform.startswith('win'):
|
|
settings = Debug
|