Skip to content

Fix Render seed import with persistent disk - #4

Merged
JoshAquila merged 1 commit into
mainfrom
fix/render-data-disk-seed-path
Jul 30, 2026
Merged

Fix Render seed import with persistent disk#4
JoshAquila merged 1 commit into
mainfrom
fix/render-data-disk-seed-path

Conversation

@clank-tech

Copy link
Copy Markdown
Collaborator

Summary

  • move Render/runtime SQLite storage to /app/storage so it does not shadow checked-in seed data
  • copy the public ingredient seed to /app/seed/ingredients.json in the Docker image
  • set INGREDIENTS_JSON for Render predeploy imports

Root cause

Render predeploy runs with the persistent disk mounted. Mounting storage at /app/data can hide the checked-in /app/data/ingredients.json file, causing npm run import-data to fail before startup.

Verification

  • INGREDIENTS_JSON=data/ingredients.json SQLITE_PATH=/tmp/chekit-render-import-test-2/chekit.sqlite npm run import-data
  • npm run smoke
  • git diff --check

Note: local Docker build was not run because Docker is not installed on Clank's Mac yet.

@JoshAquila
JoshAquila merged commit 5d14fd0 into main Jul 30, 2026
1 check passed
@JoshAquila
JoshAquila deleted the fix/render-data-disk-seed-path branch July 30, 2026 22:16
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.

2 participants