Skip to content

Commit

Permalink
feat(wal): reenables wal mode
Browse files Browse the repository at this point in the history
  • Loading branch information
NGimbal committed Feb 23, 2024
1 parent c88d682 commit 0e6486f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ node_modules
.cache

/prisma/data.db
/prisma/data.db-wal
/prisma/data.db-shm
/prisma/data.db-journal
/tests/prisma

Expand Down
3 changes: 3 additions & 0 deletions fly.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ destination = "/data"
[deploy]
release_command = "node ./other/sentry-create-release"

[env]
PRISMA_SCHEMA_DISABLE_ADVISORY_LOCK = "1"

[[services]]
internal_port = 8080
processes = [ "app" ]
Expand Down
8 changes: 4 additions & 4 deletions other/litefs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ exec:

# re-enable these when this is fixed: https://github.com/superfly/litefs/issues/425
# # Set the journal mode for the database to WAL. This reduces concurrency deadlock issues
# - cmd: sqlite3 $DATABASE_PATH "PRAGMA journal_mode = WAL;"
# if-candidate: true
- cmd: sqlite3 $DATABASE_PATH "PRAGMA journal_mode = WAL;"
if-candidate: true

# # Set the journal mode for the cache to WAL. This reduces concurrency deadlock issues
# - cmd: sqlite3 $CACHE_DATABASE_PATH "PRAGMA journal_mode = WAL;"
# if-candidate: true
- cmd: sqlite3 $CACHE_DATABASE_PATH "PRAGMA journal_mode = WAL;"
if-candidate: true

- cmd: npm start

0 comments on commit 0e6486f

Please sign in to comment.