summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/main.go b/main.go
index 90a29e3..6d6467a 100644
--- a/main.go
+++ b/main.go
@@ -37,7 +37,11 @@ func main() {
model.ConnectDatabase(filepath.Join(storage.Path, "ceres.sqlite3"))
defer model.DisconnectDatabase()
model.MigrateDatabase(version)
- model.InjectTestRecipes()
+
+ if injectExamples {
+ model.InjectExampleRecipes()
+ log.Println("Added example recipes")
+ }
server := NewServer(config.HttpAddress)
go server.Start()