-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
13 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |