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:
parent
a982af6e79
commit
dba57a15a8
4 changed files with 21 additions and 7 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue