diff options
-rw-r--r-- | system/admin/config/config.go | 3 | ||||
-rw-r--r-- | system/db/init.go | 3 | ||||
-rw-r--r-- | system/init/init.go | 6 |
3 files changed, 9 insertions, 3 deletions
diff --git a/system/admin/config/config.go b/system/admin/config/config.go index e24bf98..7b57dc0 100644 --- a/system/admin/config/config.go +++ b/system/admin/config/config.go @@ -3,9 +3,6 @@ package config import ( "github.com/ponzu-cms/ponzu/management/editor" "github.com/ponzu-cms/ponzu/system/item" - - // content package must be initialized so our db is pre-configured - _ "github.com/ponzu-cms/ponzu/content" ) // Config represents the confirgurable options of the system diff --git a/system/db/init.go b/system/db/init.go index eaf6d76..49329d3 100644 --- a/system/db/init.go +++ b/system/db/init.go @@ -9,6 +9,9 @@ import ( "github.com/boltdb/bolt" "github.com/nilslice/jwt" + + // initialize the system with db configuration + _ "github.com/ponzu-cms/ponzu/system/init" ) var store *bolt.DB diff --git a/system/init/init.go b/system/init/init.go new file mode 100644 index 0000000..ed4d8ef --- /dev/null +++ b/system/init/init.go @@ -0,0 +1,6 @@ +package init + +import ( + // content package must be initialized so our db is pre-configured + _ "github.com/ponzu-cms/ponzu/content" +) |