(20241204) Arihant server IP change chaos handling.
This commit is contained in:
+3
-1
@@ -136,8 +136,10 @@ async def app_startup(**kwargs):
|
|||||||
connection_string = constants.MONGO_DATA_CONNECTION_STRING,
|
connection_string = constants.MONGO_DATA_CONNECTION_STRING,
|
||||||
database_name = constants.MONGO_DATA_DATABASE_NAME,
|
database_name = constants.MONGO_DATA_DATABASE_NAME,
|
||||||
max_connections = 10,
|
max_connections = 10,
|
||||||
debug = True
|
debug = True,
|
||||||
|
debug_only_errors = True
|
||||||
)
|
)
|
||||||
|
await current_app.mongo.connect()
|
||||||
|
|
||||||
# Get the script data:
|
# Get the script data:
|
||||||
script_id = os.environ["SCRIPT_ID"]
|
script_id = os.environ["SCRIPT_ID"]
|
||||||
|
|||||||
+1
-1
@@ -50,7 +50,7 @@ from utils_v2.system import files
|
|||||||
|
|
||||||
|
|
||||||
# Directories:
|
# Directories:
|
||||||
PROJECT_DIRECTORY = files.get_parent_directory(files.get_parent_directory(files.get_cwd()))
|
PROJECT_DIRECTORY = files.get_parent_directory(files.get_file_directory(), depth = 1)
|
||||||
CREDENTIALS_DIRECTORY = os.path.join(PROJECT_DIRECTORY, "cred")
|
CREDENTIALS_DIRECTORY = os.path.join(PROJECT_DIRECTORY, "cred")
|
||||||
MONGO_CREDENTIALS_DIRECTORY = os.path.join(CREDENTIALS_DIRECTORY, "mongo")
|
MONGO_CREDENTIALS_DIRECTORY = os.path.join(CREDENTIALS_DIRECTORY, "mongo")
|
||||||
MODELS_DIRECTORY = os.path.join(PROJECT_DIRECTORY, "models")
|
MODELS_DIRECTORY = os.path.join(PROJECT_DIRECTORY, "models")
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user