diff options
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -33,9 +33,9 @@ func main() { } log.Printf("Storage directory: %s\n", storage.Path) - model.InitDatabase(filepath.Join(storage.Path, "ceres.sqlite3")) - defer model.CloseDatabase() - + model.ConnectDatabase(filepath.Join(storage.Path, "ceres.sqlite3")) + defer model.DisconnectDatabase() + model.MigrateDatabase() model.InjectTestRecipes() server := NewServer(config.HttpAddress) |