אני לא יכול לייצא ל-PDF (שרת מתמחה)
כאשר אתה מנסה at eksportere en PDF, der resulter in en error (eller works som om intet sker). Productionsloggen vil vise fejl lignende
ארנו :: EPIPE (צינור שבור) או wkhtmltopdf: לא ניתן להתחבר לשרת X
Forårsaget af בעיות עם eksportkomponenten wkhtmltopdf
הפתרונות שלה מציעים.
שרת ללא ראש
יש את הגרסה הדרושה של wkhtmltopdf fra http://wkhtmltopdf.org/downloads.html
דוגמה (דו צריך לעבוד עם פרטים בסביבה אחרת):
- sudo מתאים לקבל התקנת xvfb xauth
- wget https://bitbucket.org/wkhtmltopdf/wkhtmltopdf/downloads/wkhtmltox-0.13.0-alpha-7b36694_linux-jessie-amd64.deb
- sudo dpkg -i wkhtmltox-0.13.0-alpha-7b36694_linux-jessie-amd64.deb
- sudo apt-get-f להתקין
- sudo mv / usr / local / bin / wkhtmltopdf / usr / local / bin / xwkhtmltopdf
- הד 'exec xvfb-run -a -s "-מסך 0 640x480x16" xwkhtmltopdf "$ @"' | sudo tee / usr / local / bin / wkhtmltopdf> / dev / null
- sudo chmod a + x / usr / local / bin / wkhtmltopdf
שרת ללא ראש
- Du skal have wkhtmltopdf להתקין בשרת דין i נתיב
(Apt-get install wkhtmltox, יאם להתקין wkhtmltox)
זה צריך להתקין ב-Bundler, או אולי זה לא יפעל לאחר העדכון של Easy Redmine - דאג עבור, בעובדה תקינה (kør det f.eks. fra konsollen wkhtmltopdf https://easyredmine.com homepage.pdf)
- kør rake easyproject:install RAILS_ENV=production שוב
- genstart serveren