hexya-erp / hexya

Hexya business application development framework
http://hexya.io
Apache License 2.0
418 stars 128 forks source link

Binary executable deploy? #4

Closed halybang closed 6 years ago

halybang commented 7 years ago

We can not deploy hexya as binary executable when invoke hexya server (because of calling cleanModuleSymlinks/createModuleSymlinks ). IMHO, cleanModuleSymlinks/createModuleSymlinks should be call when invoke hexya generate

npiganeau commented 7 years ago

Hexya cannot be deployed as binary anyway:

  1. Because it needs all resource files (from all the folders which are symlinked) as you said
  2. Because it is configurable at compile time (to choose the modules you want).

So because of 1 and 2, I did not put much importance about deployment for the moment.

But I plan to do a hexya bundle or equivalent to get a distributable form of Hexya (maybe a zip or a single binary with go-binddata, I don't know yet)

halybang commented 7 years ago

I created a simple application for do that. Still need to move cleanModuleSymlinks/createModuleSymlinks to another location. You can look :) Haxey

npiganeau commented 7 years ago

Ok. Can you make a PR ?

npiganeau commented 6 years ago

Done in 9f2d33fed3540b5b56507f26b7ca5547c9aacb5d