Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Commit

Permalink
fix(litestream): update litestream docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
dtfiedler committed May 9, 2024
1 parent 21c3af0 commit 6a7c18b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions litestream/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,11 @@ echo "Restoring database from backup..."
/usr/local/bin/litestream restore -if-db-not-exists -parallelism 10 -config /litestream.yml $TVAL_LOCAL_DB_PATH/state.db
/usr/local/bin/litestream restore -if-db-not-exists -parallelism 10 -config /litestream.yml $TVAL_LOCAL_DB_PATH/contract.db

if [[ -n "$WAIT_TIME_SECONDS" ]]; then
# Sleep for the number of seconds specified in WAIT_TIME_SECONDS
echo "Waiting for $WAIT_TIME_SECONDS seconds before starting replication..."
sleep $WAIT_TIME_SECONDS
fi

echo "Starting Litestream for continuous replication..."
/usr/local/bin/litestream replicate -config /litestream.yml

0 comments on commit 6a7c18b

Please sign in to comment.