Installation note for redmine_more_previews when running on a FreeBSD host
On a host running FreeBSD software installed in the ports environment (i.e. installed using pkg(8) or via the ports(7) tree) are given an environment in which PATH doesn't include /usr/local/bin. In a typical installation this results in redmine_more_previews being unable to find helper apps - soffice, gs, pandoc, etc.
A solution to this is to use passenger's passenger_env_var option to set the path used within the passenger app environment. e.g.:
passenger_env_var PATH /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin;
Another solution - tested with www/nginx - is to set the path used within the webserver environment, e.g. with nginx_env in /etc/rc.conf:
nginx_env="PATH=\$PATH:/usr/local/bin"
which may help if the passenger_env_var solution doesn't work.
Installation note for redmine_more_previews when running on a FreeBSD host
On a host running
FreeBSDsoftware installed in theportsenvironment (i.e. installed usingpkg(8)or via theports(7) tree) are given an environment in whichPATHdoesn't include/usr/local/bin. In a typical installation this results inredmine_more_previewsbeing unable to find helper apps -soffice,gs,pandoc, etc.A solution to this is to use passenger's passenger_env_var option to set the path used within the passenger app environment. e.g.:
passenger_env_var PATH /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin;Another solution - tested with
www/nginx- is to set the path used within the webserver environment, e.g. withnginx_envin/etc/rc.conf:nginx_env="PATH=\$PATH:/usr/local/bin"which may help if the
passenger_env_varsolution doesn't work.