How to install playwright on Railway
I deployed a django web app that utilizes playwright in the background. In order for playwright to work the chromium web driver has to be available on the system which can be downloaded through
playwright install
. But how can I do this on the production4 Replies
Project ID:
9b234978-dcf4-45a2-82fc-1d65d6eb8d4a
9b234978-dcf4-45a2-82fc-1d65d6eb8d4a
Take a look on my code.
In my case, I use playwright async_api, couse I'm usin in a Discord bot, but u just have to run your code after the instalations with subprocess.
"playwright install" and "playwright install-deps" need to be installed, otherwise playwright cannot run due to missing dependencies.