File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -239,6 +239,7 @@ def deploy_playwright_automation(
239239 "APPWRITE_ADMIN_EMAIL" : lab .admin_email ,
240240 "APPWRITE_ADMIN_PASSWORD" : lab .admin_password ,
241241 }
242+ envs = " " .join ([f"{ key } ={ value } " for key , value in env_vars .items ()])
242243 with tempfile .TemporaryDirectory () as temp_dir :
243244 temp_file = Path (temp_dir ) / "function.py"
244245 shutil .copy (function , temp_file )
@@ -253,7 +254,7 @@ def deploy_playwright_automation(
253254 PLAYWRIGHT_IMAGE ,
254255 "bash" ,
255256 "-c" ,
256- "pip install playwright asyncio && echo XXXX '$APPWRITE_URL' && python /playwright/function.py" ,
257+ f "pip install playwright asyncio && { envs } python /playwright/function.py" ,
257258 ]
258259 cmd_res = self ._run_cmd_safely (cmd )
259260 if type (cmd_res ) is Response and cmd_res .error :
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ def generate_missing_config(self):
3737 self .project_id = "" .join (
3838 random .choices (string .ascii_letters + string .digits , k = 10 )
3939 )
40+ self .project_id = self .project_id .lower ()
4041 if not self .admin_email :
4142 self .admin_email = f"admin_{ self .project_id } @local.dev"
4243 if not self .admin_password :
You can’t perform that action at this time.
0 commit comments