File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -241,18 +241,18 @@ def install_deps(c: Connection | DockerRunner | Context, config: dict) -> None:
241241 pty = True
242242 )
243243
244- # Install Playwright browsers if playwright is installed
245- logger .info ("Checking if Playwright is installed..." )
246- playwright_check = c .run (
244+ # Install Playwright browsers if scraper-apigateway is installed
245+ logger .info ("Checking if scraper-apigateway is installed..." )
246+ scraper_check = c .run (
247247 f"bash -c 'source { venv_dir } /bin/activate && "
248248 f"cd { deploy_path } && "
249- f"python -c \" import playwright ; print('playwright installed')\" '" ,
249+ f"python -c \" import scraper_apigateway ; print('scraper-apigateway installed')\" '" , # noqa: E501
250250 pty = True ,
251251 warn = True ,
252252 hide = True
253253 )
254254
255- if playwright_check and playwright_check .ok :
255+ if scraper_check and scraper_check .ok :
256256 logger .info ("Installing Playwright browsers..." )
257257 c .run (
258258 f"bash -c 'source { venv_dir } /bin/activate && "
@@ -270,8 +270,8 @@ def install_deps(c: Connection | DockerRunner | Context, config: dict) -> None:
270270 )
271271 else :
272272 logger .info (
273- "Playwright not found in requirements, "
274- "skipping browser installation."
273+ "scraper-apigateway not found in requirements, "
274+ "skipping Playwright browser installation."
275275 )
276276
277277def migrate (c : Connection | DockerRunner | Context , config : dict ) -> None :
You can’t perform that action at this time.
0 commit comments