浏览代码

修改测试环境配置问题

guojing_wu 1 年之前
父节点
当前提交
3957baf515
共有 3 个文件被更改,包括 18 次插入20 次删除
  1. 9 10
      sync_amz_data/settings/__init__.py
  2. 2 10
      sync_amz_data/settings/dev.py
  3. 7 0
      sync_amz_data/settings/test.py

+ 9 - 10
sync_amz_data/settings/__init__.py

@@ -1,5 +1,4 @@
 import os
-import logging
 
 env = os.getenv("ANS_ENV")
 if not env:
@@ -13,15 +12,15 @@ elif env == "dev":
 else:
     raise Exception("ANS_ENV not in (online, test, dev)")
 
-REDIS_CONF = {
-    "host": REDIS_HOST,
-    "port": 6379,
-    "password": REDIS_PASSWORD,
-    "decode_responses": False,
-    "retry_on_timeout": True,
-    "max_connections": 50,
-    "db": 0
-}
+# REDIS_CONF = {
+#     "host": REDIS_HOST,
+#     "port": 6379,
+#     "password": REDIS_PASSWORD,
+#     "decode_responses": False,
+#     "retry_on_timeout": True,
+#     "max_connections": 50,
+#     "db": 0
+# }
 
 AWS_LWA_CLIENT = {
     'lwa_client_id': 'amzn1.application-oa2-client.ebd701cd07854fb38c37ee49ec4ba109',

+ 2 - 10
sync_amz_data/settings/dev.py

@@ -1,13 +1,5 @@
-REDIS_HOST = "172.18.0.4"
-REDIS_PASSWORD = "iwP5Zh1J75E5yj"
-
-DB_CONF = {
-    "host": "retail-data.cnrgrbcygoap.us-east-1.rds.amazonaws.com",
-    "port": 3306,
-    "user": "admin",
-    "password": "NSYbBSPbkGQUbOSNOeyy",
-    "database": "amzn_retail_ad",
-}
+# REDIS_HOST = "172.18.0.4"
+# REDIS_PASSWORD = "iwP5Zh1J75E5yj"
 
 LOG_LEVEL = 10
 LOG_HANDLERS = ["console"]

+ 7 - 0
sync_amz_data/settings/test.py

@@ -0,0 +1,7 @@
+# REDIS_HOST = "172.18.0.4"
+# REDIS_PASSWORD = "iwP5Zh1J75E5yj"
+
+LOG_LEVEL = 10
+LOG_HANDLERS = ["console"]
+
+DATA_PATH = "/tmp"