Skip to content

Commit

Permalink
fix: add realtime cmd for backwards compatibility (#2184)
Browse files Browse the repository at this point in the history
  • Loading branch information
sweatybridge authored Apr 18, 2024
1 parent 8e70766 commit ea27514
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/start/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,11 @@ EOF
"RLIMIT_NOFILE=",
fmt.Sprintf("MAX_HEADER_LENGTH=%d", utils.Config.Realtime.MaxHeaderLength),
},
// TODO: remove this after deprecating PG14
Cmd: []string{
"/bin/sh", "-c",
"/app/bin/migrate && /app/bin/realtime eval 'Realtime.Release.seeds(Realtime.Repo)' && /app/bin/server",
},
ExposedPorts: nat.PortSet{"4000/tcp": {}},
Healthcheck: &container.HealthConfig{
Test: []string{"CMD", "curl", "-sSfL", "--head", "-o", "/dev/null", "-H", "Authorization: Bearer " + utils.Config.Auth.AnonKey,
Expand Down

0 comments on commit ea27514

Please sign in to comment.