Hello guys,
I am using django-hardcopy to create PDF from django template.
Aplication was on heroku and i had to specifiy PATH_TO_CHROME. Everything was working on heroku with:
I had to transfer app on freeBSD on mydevi.net and the problem started.
From support i recieved info how to download chromium (pkg install or other commands requiring root privileges are not allowed):
I did that above, and now i have in
I am trying to pass in django settings
but it doesn't work...
The application behaves as if this chromium environment is not starting, as it could not find chrome.exe
On development on localserver i points to the path to chorme in program files and everything works
I will add that I am a beginner when it comes to programming, so please be understanding...
I am using django-hardcopy to create PDF from django template.
Aplication was on heroku and i had to specifiy PATH_TO_CHROME. Everything was working on heroku with:
PATH_TO_CHROME='/app/.apt/opt/google/chrome/chrome --headless --print-to-pdf --disable-gpu --no-sandbox'
I had to transfer app on freeBSD on mydevi.net and the problem started.
From support i recieved info how to download chromium (pkg install or other commands requiring root privileges are not allowed):
wget https://pkg.freebsd.org/FreeBSD:13:amd64/release_1/All/chromium-100.0.4896.60_1.pkg
tar -zxf chromium-100.0.4896.60_1.pkg
export LD_LIBRARY_PATH=~/usr/lib/
export LD_LIBRARY_PATH=~/usr/local/lib/
wget https://pkg.freebsd.org/FreeBSD:13:amd64/release_1/All/openh264-2.2.0,2.pkg
tar -zxf openh264-2.2.0,2.pkg
cd ~/usr/local/bin/
./chromedriver --help
I did that above, and now i have in
~/usr/local/bin/
two file chrome and chromedriver.I am trying to pass in django settings
Code:
CHROME_PATH='~/usr/local/bin/' or '~/usr/local/lib/chrome'
but it doesn't work...
The application behaves as if this chromium environment is not starting, as it could not find chrome.exe
On development on localserver i points to the path to chorme in program files and everything works
I will add that I am a beginner when it comes to programming, so please be understanding...