Skip to content

Commit

Permalink
Merge pull request #48 from supabase-community/fix-realtime
Browse files Browse the repository at this point in the history
fix: default realtime image
  • Loading branch information
mats16 authored Jun 22, 2023
2 parents 27e7c3e + a173942 commit f74a629
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
9 changes: 2 additions & 7 deletions src/supabase-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export class SupabaseStack extends FargateStack {
});
const realtimeImageUri = new cdk.CfnParameter(this, 'RealtimeImageUri', {
type: 'String',
default: 'public.ecr.aws/supabase/realtime:v2.5.1',
default: 'public.ecr.aws/supabase/realtime:v2.15.0',
description: 'https://gallery.ecr.aws/supabase/realtime',
});
const storageImageUri = new cdk.CfnParameter(this, 'StorageImageUri', {
Expand Down Expand Up @@ -440,12 +440,7 @@ export class SupabaseStack extends FargateStack {
SECRET_KEY_BASE: ecs.Secret.fromSecretsManager(cookieSigningSecret),
},
entryPoint: ['/usr/bin/tini', '-s', '-g', '--'], // ignore /app/limits.sh
command: [
'sh',
'-c',
// Todo: Remove the use of sed
'/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',
],
command: ['sh', '-c', '/app/bin/migrate && /app/bin/realtime eval "Realtime.Release.seeds(Realtime.Repo)" && /app/bin/server'],
},
});

Expand Down
4 changes: 2 additions & 2 deletions test/__snapshots__/main.test.ts.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f74a629

Please sign in to comment.