20 lines
359 B
Go
20 lines
359 B
Go
package main
|
|
|
|
import (
|
|
"context"
|
|
"log"
|
|
|
|
"watch-party-backend/internal/config"
|
|
"watch-party-backend/internal/migrate"
|
|
)
|
|
|
|
func main() {
|
|
// Load env (.env supported) and run migrations
|
|
cfg := config.Load()
|
|
|
|
if err := migrate.Run(context.Background(), cfg); err != nil {
|
|
log.Fatalf("migrations failed: %v", err)
|
|
}
|
|
log.Println("migrations completed")
|
|
}
|