Skip to content

Commit f760bd3

Browse files
emmaling27Convex, Inc.
authored andcommitted
update fly instructions to work with up-to-date docker images (#34030)
GitOrigin-RevId: 01fa6b0cbbb3efeb776f4734f12452f74e1e6b62
1 parent 210d030 commit f760bd3

File tree

3 files changed

+17
-20
lines changed

3 files changed

+17
-20
lines changed

self-hosted/dashboard/fly.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ app = 'self-hosted-dashboard'
77
primary_region = 'sjc'
88

99
[build]
10-
image = 'ghcr.io/get-convex/self-hosted-dashboard-amd64:latest'
10+
image = 'ghcr.io/get-convex/self-hosted-dashboard:latest'
1111

1212
[env]
1313
NEXT_PUBLIC_DEPLOYMENT_URL = 'https://self-hosted-backend.fly.dev'
1414

1515
[[services]]
16-
internal_port = 6790
16+
internal_port = 6791
1717
protocol = "tcp"
1818

1919
[[services.ports]]

self-hosted/fly-instructions.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,11 @@
33
fly launch
44
# Copy and paste the url that is output to set NEXT_PUBLIC_DEPLOYMENT_URL in the dashboard/fly.toml file.
55

6-
# Generate admin key
7-
fly ssh console --app self-hosted-backend --command "./generate_admin_key.sh"
86
cd dashboard
97
fly launch
10-
# TODO Remove after dashboard docker rebuild
11-
fly secrets set NEXT_PUBLIC_ADMIN_KEY=<your-admin-key>
12-
fly deploy
138
# Visit the dashboard at the url output from the fly deploy command.
9+
# Generate admin key to login to the dashboard.
10+
fly ssh console --app self-hosted-backend --command "./generate_admin_key.sh"
1411

1512
# Write these environment variables to .env.local
1613
CONVEX_SELF_HOST_DEPLOYMENT_URL='<NEXT_PUBLIC_DEPLOYMENT_URL>'

self-hosted/fly.toml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,24 @@ app = 'self-hosted-backend'
77
primary_region = 'sjc'
88

99
[build]
10-
image = 'ghcr.io/get-convex/self-hosted-backend-amd64:latest'
10+
image = 'ghcr.io/get-convex/self-hosted-backend:latest'
1111

1212
[env]
13-
TMPDIR = '/convex/data/tmp'
13+
TMPDIR = '/convex/data/tmp'
1414

1515
[[mounts]]
16-
source = 'convex_data'
17-
destination = '/convex/data'
16+
source = 'convex_data'
17+
destination = '/convex/data'
1818

1919
[http_service]
20-
internal_port = 3210
21-
force_https = true
22-
auto_stop_machines = 'stop'
23-
auto_start_machines = true
24-
min_machines_running = 1
25-
processes = ['app']
20+
internal_port = 3210
21+
force_https = true
22+
auto_stop_machines = 'stop'
23+
auto_start_machines = true
24+
min_machines_running = 1
25+
processes = ['app']
2626

2727
[[vm]]
28-
memory = '1gb'
29-
cpu_kind = 'shared'
30-
cpus = 1
28+
memory = '1gb'
29+
cpu_kind = 'shared'
30+
cpus = 1

0 commit comments

Comments
 (0)