lampnick / doctron

html转pdf , html转图片 , Docker-powered html convert to pdf(html2pdf), html to image(html2image like jpeg,png),which using chrome(golang) kernel.
http://doctron.mitnick.fun
Apache License 2.0
557 stars 124 forks source link

请问不支持直接在debian下面部署吗,必须Docker? #63

Open bzdlx opened 5 months ago

bzdlx commented 5 months ago

[ERRO] 2024/05/24 17:45 http: Server closed [FTAL] 2024/05/24 17:45 start doctron failed. %vhttp: Server closed Failed access to font dir: neither $XDG_CONFIG_HOME nor $HOME are defined Failed access to font dir: neither $XDG_CONFIG_HOME nor $HOME are defined Failed access to font dir: neither $XDG_CONFIG_HOME nor $HOME are defined

直接部署在debian服务器启动是时候,报以上错误。

求解~

lampnick commented 5 months ago

�[31m[ERRO]�[0m 2024/05/24 17:45 http: Server closed �[41m[FTAL]�[0m 2024/05/24 17:45 start doctron failed. %vhttp: Server closed Failed access to font dir: neither $XDG_CONFIG_HOME nor $HOME are defined Failed access to font dir: neither $XDG_CONFIG_HOME nor $HOME are defined Failed access to font dir: neither $XDG_CONFIG_HOME nor $HOME are defined

直接部署在debian服务器启动是时候,报以上错误。

求解~

zaite commented 1 month ago

同样的问题,按上面的说明在debian系统的/etc/profile文件里设置了环境变量(服务以www、root用户运行都试过),还是报这个错误 image

lampnick commented 2 weeks ago

同样的问题,按上面的说明在debian系统的/etc/profile文件里设置了环境变量(服务以www、root用户运行都试过),还是报这个错误 image

最好看下环境变量生效没有