fix(deploy): ensure /root/.pry dir and volume exist for SQLite migrations #7

Merged
cryptorugmunch merged 2 commits from fix/alembic-deploy-runtime into main 2026-07-03 02:46:17 +02:00

Fixes container crash caused by Alembic being unable to open the SQLite database file.

  • Create /root/.pry in the Dockerfile so the default DB path exists
  • Add pry-data Docker volume mounted at /root/.pry for persistence
  • Update alembic env.py to use the same URL resolver as db.py

Verified: FAILED: No 'script_location' key found in configuration. creates /root/.pry/pry.db inside the image.

Fixes container crash caused by Alembic being unable to open the SQLite database file. - Create /root/.pry in the Dockerfile so the default DB path exists - Add pry-data Docker volume mounted at /root/.pry for persistence - Update alembic env.py to use the same URL resolver as db.py Verified: FAILED: No 'script_location' key found in configuration. creates /root/.pry/pry.db inside the image.
cryptorugmunch added 2 commits 2026-07-03 02:42:16 +02:00
fix(deploy): ensure /root/.pry dir and volume exist for SQLite migrations
All checks were successful
CI / lint (pull_request) Successful in 2m20s
CI / typecheck (pull_request) Successful in 2m59s
CI / Secret scan (gitleaks) (pull_request) Successful in 47s
CI / test (pull_request) Successful in 1m41s
CI / Security audit (bandit) (pull_request) Successful in 34s
72c023018b
cryptorugmunch merged commit dec3db9618 into main 2026-07-03 02:46:17 +02:00
cryptorugmunch deleted branch fix/alembic-deploy-runtime 2026-07-03 02:46:17 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: RugMunchMedia/pryscraper#7
No description provided.