1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-19 13:19:43 +02:00

removed embed init() for unit testing

This commit is contained in:
Harvey Kandola 2017-09-01 14:11:09 +01:00
parent a982af6e79
commit dba57a15a8
4 changed files with 21 additions and 7 deletions

View file

@ -20,8 +20,10 @@ import (
"github.com/documize/community/domain/section"
"github.com/documize/community/edition/boot"
"github.com/documize/community/edition/logging"
_ "github.com/documize/community/embed" // the compressed front-end code and static data
"github.com/documize/community/embed"
// _"github.com/documize/community/embed" // the compressed front-end code and static data
"github.com/documize/community/server"
"github.com/documize/community/server/web"
_ "github.com/go-sql-driver/mysql" // the mysql driver is required behind the scenes
)
@ -34,6 +36,9 @@ func main() {
// wire up logging implementation
rt.Log = logging.NewLogger()
// wire up embedded web assets handler
web.Embed = embed.NewEmbedder()
// product details
rt.Product = env.ProdInfo{}
rt.Product.Major = "1"