Open javazsaz opened 2 years ago
hello again , after deployed to heroku using setting below get error :
████████╗██╗██╗ ██╗████████╗ ██████╗ ██╗ ██╗ ████████╗ ██████╗ ██╗ ██╗████████╗
╚══██╔══╝██║██║ ██╔╝╚══██╔══╝██╔═══██╗██║ ██╔╝ ╚══██╔══╝██╔═══██╗ ╚██╗ ██╔╝╚══██╔══╝
██║ ██║█████╔╝ ██║ ██║ ██║█████╔╝ ██║ ██║ ██║ ╚████╔╝ ██║
██║ ██║██╔═██╗ ██║ ██║ ██║██╔═██╗ ██║ ██║ ██║ ╚██╔╝ ██║
██║ ██║██║ ██╗ ██║ ╚██████╔╝██║ ██╗ ██║ ╚██████╔╝ ██║ ██║
╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝
Traceback (most recent call last):
File "/app/main.py", line 259, in
my dyno setting is :
Config Vars: PATH="/usr/local/bin:/usr/bin:/bin:/app/vendor/" LD_LIBRARY_PATH="/usr/local/lib:/usr/lib:/lib:/app/vendor" PLAYWRIGHT_BUILDPACK_BROWSERS="firefox" TMPDIR="/app/tmp"
buildpacks: heroku/python http://github.com/yegor256/firefox-buildpack http://github.com/buitron/geckodriver-buildpack https://github.com/mxschmitt/heroku-playwright-buildpack https://github.com/jonathanong/heroku-buildpack-ffmpeg-latest
important : Firefox
For Firefox, you can refer to the official examples, no need to adjust any configurations.
const { firefox } = require("playwright-firefox");
(async () => {
const browser = await chromium.launch();
const context = await browser.newContext();
const page = await context.newPage();
await page.goto('http://whatsmyuseragent.org/');
await page.screenshot({ path: firefox.png
});
await browser.close();
})();
refrence : https://github.com/playwright-community/heroku-playwright-buildpack#firefox
I think you must be little change on your code to compatable waiting for your response finest regards
Hi javazsaz, That's perfectly fine, I will start working on making it deployable on heroku now. I will also quickly add support for removing the file after it is done uploading. Thanks!
@voletro Is there anything new about it? Deployment using Harko would be a great thing !
hi voletro, at the first special thanks for your special work , please if it's possible make it deployable on heroku , all buildpacks needed like selenium are available & using set worker on procfile can run important command after heroku dyno awake daily & using http://kaffeine.herokuapp.com/ to ping every 30 minutes so it will never go to sleep :) waiting for your commits for changes ;) finest regards