Skip to content

Commit f74a629

Browse files
authored
Merge pull request #48 from supabase-community/fix-realtime
fix: default realtime image
2 parents 27e7c3e + a173942 commit f74a629

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

src/supabase-stack.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export class SupabaseStack extends FargateStack {
105105
});
106106
const realtimeImageUri = new cdk.CfnParameter(this, 'RealtimeImageUri', {
107107
type: 'String',
108-
default: 'public.ecr.aws/supabase/realtime:v2.5.1',
108+
default: 'public.ecr.aws/supabase/realtime:v2.15.0',
109109
description: 'https://gallery.ecr.aws/supabase/realtime',
110110
});
111111
const storageImageUri = new cdk.CfnParameter(this, 'StorageImageUri', {
@@ -440,12 +440,7 @@ export class SupabaseStack extends FargateStack {
440440
SECRET_KEY_BASE: ecs.Secret.fromSecretsManager(cookieSigningSecret),
441441
},
442442
entryPoint: ['/usr/bin/tini', '-s', '-g', '--'], // ignore /app/limits.sh
443-
command: [
444-
'sh',
445-
'-c',
446-
// Todo: Remove the use of sed
447-
'/bin/sed -i -e "s/127.0.0.1/$(grep $HOSTNAME /etc/hosts | cut -f 1 -d " ")/" /app/releases/*/env.sh && /app/bin/migrate && /app/bin/realtime eval "Realtime.Release.seeds(Realtime.Repo)" && /app/bin/server',
448-
],
443+
command: ['sh', '-c', '/app/bin/migrate && /app/bin/realtime eval "Realtime.Release.seeds(Realtime.Repo)" && /app/bin/server'],
449444
},
450445
});
451446

test/__snapshots__/main.test.ts.snap

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)