Skip to content

Commit

Permalink
add debug statements
Browse files Browse the repository at this point in the history
  • Loading branch information
scefali committed Jun 8, 2024
1 parent fde6af6 commit 90c1f44
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions other/litefs.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 90c1f44

Please sign in to comment.