chore: auto-commit (5 archivos)
- handlers.go - handlers_test.go - main.go - datafactory_events.go - handlers_datafactory.go Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -11,6 +11,7 @@ import (
|
||||
|
||||
func main() {
|
||||
bind := flag.String("bind", "127.0.0.1:8484", "address to bind")
|
||||
dataFactoryDB := flag.String("data-factory-db", "", "path to data_factory.db (default: <root>/apps/data_factory/data_factory.db)")
|
||||
flag.Parse()
|
||||
|
||||
root := findRegistryRoot()
|
||||
@@ -24,7 +25,14 @@ func main() {
|
||||
log.Printf("registered database: %s (%s)", entry.Alias, entry.Path)
|
||||
}
|
||||
|
||||
srv := NewServer(pool, root)
|
||||
dfPath := *dataFactoryDB
|
||||
if dfPath == "" {
|
||||
dfPath = filepath.Join(root, "apps", "data_factory", "data_factory.db")
|
||||
}
|
||||
dfMigrations := filepath.Join(root, "apps", "data_factory", "migrations")
|
||||
log.Printf("data_factory db: %s (migrations: %s)", dfPath, dfMigrations)
|
||||
|
||||
srv := NewServer(pool, root, dfPath, dfMigrations)
|
||||
mux := http.NewServeMux()
|
||||
srv.Routes(mux)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user