From 90c1f44e04ab5f03c815c51b8767b60d093816a8 Mon Sep 17 00:00:00 2001 From: Stephen Cefali Date: Sun, 9 Jun 2024 06:39:46 +0800 Subject: [PATCH] add debug statements --- other/litefs.yml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/other/litefs.yml b/other/litefs.yml index 385ab47..6c8d7f7 100644 --- a/other/litefs.yml +++ b/other/litefs.yml @@ -1,32 +1,32 @@ fuse: - dir: '${LITEFS_DIR}' # Ensure this is set and accessible + dir: '${LITEFS_DIR}' data: - dir: '/data/litefs' # Ensure this directory exists + dir: '/data/litefs' proxy: - addr: ':${INTERNAL_PORT}' # Ensure this matches your internal port configuration - target: 'localhost:${PORT}' # Ensure this points to your application's port - db: '${DATABASE_FILENAME}' # Ensure this is correctly set + addr: ':${INTERNAL_PORT}' + target: 'localhost:${PORT}' + db: '${DATABASE_FILENAME}' lease: type: 'consul' - candidate: ${FLY_REGION == PRIMARY_REGION} # Ensure this logic is correct + candidate: ${FLY_REGION == PRIMARY_REGION} promote: true - advertise-url: 'http://${HOSTNAME}.vm.${FLY_APP_NAME}.internal:20202' # Ensure this URL is correct + advertise-url: 'http://${HOSTNAME}.vm.${FLY_APP_NAME}.internal:20202' consul: - url: '${FLY_CONSUL_URL}' # Ensure this URL is reachable - key: 'epic-stack-litefs/${FLY_APP_NAME}' # Ensure this key is correct + url: '${FLY_CONSUL_URL}' + key: 'epic-stack-litefs/${FLY_APP_NAME}' exec: - - cmd: npx prisma migrate deploy + - cmd: echo "DEBUG: Running prisma migrate deploy" && npx prisma migrate deploy if-candidate: true - - cmd: sqlite3 $DATABASE_PATH "PRAGMA journal_mode = WAL;" + - cmd: echo "DEBUG: Setting journal mode for database to WAL" && sqlite3 $DATABASE_PATH "PRAGMA journal_mode = WAL;" if-candidate: true - - cmd: sqlite3 $CACHE_DATABASE_PATH "PRAGMA journal_mode = WAL;" + - cmd: echo "DEBUG: Setting journal mode for cache to WAL" && sqlite3 $CACHE_DATABASE_PATH "PRAGMA journal_mode = WAL;" if-candidate: true - - cmd: npm start + - cmd: echo "DEBUG: Starting application" && npm start