hexya
hexya copied to clipboard
Make Hexya deployable through an executable bundle
Hi,
Hexya can not run with user other than build user.
I build hexya with user A, then run with user B, or user root (for AutoTLS using port 80), hexya crash with error:
panic: Error while getting Hexya root path: cannot find package "github.com/hexya-erp/hexya"
Actually, the hexya
executable is not the application you run, it just a helper application to build (to /tmp
) and run the application, depending on the configuration you give it (especially the modules you selected). This means that for the hexya
command to work, you need a full Go development environment, including a Go workspace.
So if user B has no Go dev environment, you cannot just run the hexya
command.
We have plans to make bundles to deploy executable Hexya applications in the future.