Skip to content

Declare the SQLite volume mount in fly.toml - #28

Merged
jdtw merged 1 commit into
mainfrom
fix/sqlite-volume-mount
Aug 1, 2026
Merged

jdtw merged 1 commit into
mainfrom
fix/sqlite-volume-mount

Conversation

@jdtw

@jdtw jdtw commented Aug 1, 2026

Copy link
Copy Markdown
Owner

Why

SQLITE_PATH is set on the app and points into /data. That directory exists only because a volume is mounted there — and that mount was applied by hand during the migration rather than through config.

So a fly deploy from a clean checkout would produce a machine with no /data, fail to open the database, and exit. With the Postgres cluster now gone there is nothing to fall back to, which makes that a full outage rather than a degraded start.

What

  • Declare the links_data mount at /data.
  • Correct primary_region, which said sea while the machine and its volume are both in sjc. Volumes cannot attach across regions, so the stale value is the same trap in a different form: it would place a machine where no volume exists.

This matches the state the app is actually running in today — it's config catching up to reality, not a behavior change.

🤖 Generated with Claude Code

The app now reads its database from the path in the SQLITE_PATH secret,
which points into /data. That directory only exists because a volume is
mounted there, and the mount was applied by hand rather than through
config -- so a deploy from a clean checkout would come up with no /data,
fail to open the database, and exit. There is no longer a Postgres
instance to fall back to, so that failure would be a full outage.

Also correct primary_region, which said sea while the machine and its
volume are both in sjc. Volumes cannot attach across regions, so the
stale value is the same trap: it would place a machine where no volume
exists.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@jdtw
jdtw merged commit 1ed8ce8 into main Aug 1, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant