File tree Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,8 @@ ENV CACHE_DATABASE_PATH="$LITEFS_DIR/$CACHE_DATABASE_FILENAME"
52
52
ENV INTERNAL_PORT="8080"
53
53
ENV PORT="8081"
54
54
ENV NODE_ENV="production"
55
+ # For WAL support: https://github.com/prisma/prisma-engines/issues/4675#issuecomment-1914383246
56
+ ENV PRISMA_SCHEMA_DISABLE_ADVISORY_LOCK = "1"
55
57
56
58
# add shortcut for connecting to database CLI
57
59
RUN echo "#!/bin/sh\n set -x\n sqlite3 \$ DATABASE_URL" > /usr/local/bin/database-cli && chmod +x /usr/local/bin/database-cli
@@ -68,7 +70,7 @@ COPY --from=build /myapp/prisma /myapp/prisma
68
70
COPY --from=build /myapp/app/components/ui/icons /myapp/app/components/ui/icons
69
71
70
72
# prepare for litefs
71
- COPY --from=flyio/litefs:0.5.8 /usr/local/bin/litefs /usr/local/bin/litefs
73
+ COPY --from=flyio/litefs:0.5.11 /usr/local/bin/litefs /usr/local/bin/litefs
72
74
ADD other/litefs.yml /etc/litefs.yml
73
75
RUN mkdir -p /data ${LITEFS_DIR}
74
76
Original file line number Diff line number Diff line change @@ -34,13 +34,12 @@ exec:
34
34
- cmd : npx prisma migrate deploy
35
35
if-candidate : true
36
36
37
- # re-enable these when this is fixed: https://github.com/superfly/litefs/issues/425
38
- # # Set the journal mode for the database to WAL. This reduces concurrency deadlock issues
39
- # - cmd: sqlite3 $DATABASE_PATH "PRAGMA journal_mode = WAL;"
40
- # if-candidate: true
41
-
42
- # # Set the journal mode for the cache to WAL. This reduces concurrency deadlock issues
43
- # - cmd: sqlite3 $CACHE_DATABASE_PATH "PRAGMA journal_mode = WAL;"
44
- # if-candidate: true
37
+ # Set the journal mode for the database to WAL. This reduces concurrency deadlock issues
38
+ - cmd : sqlite3 $DATABASE_PATH "PRAGMA journal_mode = WAL;"
39
+ if-candidate : true
40
+
41
+ # Set the journal mode for the cache to WAL. This reduces concurrency deadlock issues
42
+ - cmd : sqlite3 $CACHE_DATABASE_PATH "PRAGMA journal_mode = WAL;"
43
+ if-candidate : true
45
44
46
45
- cmd : npm start
You can’t perform that action at this time.
0 commit comments